-
Notifications
You must be signed in to change notification settings - Fork 57
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
new leaflet sample [work in progress] #4
Conversation
@lucianpls i just layed down another commit so the sample now digs elevation values out of the data directly. (its based on the tutorial here). the next step is to define a static range/colormap for all tiles... |
What you display now is the value of the pixel, not the elevation. You can't interrogate the canvas for that, you have to get the corresponding value from the decoded LERC array. |
@jgravois |
@jgravois |
alright, i pushed a few more commits, cleaned up the white border and made min/max values configurable via user input. if anyone can help with figuring out how to dig out the elevation data every time the mouse is moved, that would be really sweet. |
new leaflet sample [work in progress]
@lucianpls now that we have #5 done how would we convert a x/y pixel position on the tile to a value from the decoded array? |
I got it working, but sometimes it says "undefined", not sure why. |
work in progress (toward #3)
mousemove