-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: projection test app #9200
base: master
Are you sure you want to change the base?
Conversation
|
||
const opts = VIEWS[viewMode]; | ||
|
||
const pointData = React.useMemo(() => makePointGrid(opts), [viewMode]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to include a finer grid around zoom 12 to see how much we deviate from the adaptive projection in maplibre
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's say projection were a little off between the basemap and deck, which parameters would someone tune to align them? MapView's fov?
initializeState({device}: LayerContext) { | ||
const canvas = device.canvasContext?.canvas as HTMLCanvasElement; | ||
if (canvas) { | ||
const container = appendSVGElement(canvas.parentElement!, 'svg'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting use of a deck layer.
Is it correct to say this renders a 2D grid with SVG over the canvas? I'm assuming this only works since pitch is 0?
|
||
const layers = [ | ||
// Reference grid when base map is not available (non-geo) | ||
!opts.baseMap && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be useful to visually compare the deck lines with the basemap lines by overlapping them and rendering them in different colors?
I'm curious about how to perform a projection check
For #9199
Change List