procedural tiles #1942
-
How would I create a texture, say on a canvas, then replicate that texture for tiles all over the globe? Also how would I display the tiles at 0 elevation and none at higher elevations? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi ! You can see here a small example I made to display an image on each tile over the globe. You can see the result on the screenshot below, where each red rectangle is a globe tile. You could draw on a canvas, and pass @gchoqueux, perhaps do you know of another way of doing so ? About displaying tiles and elevation, I am not sure I understood what you want. Do you want to avoid displaying tiles which have non null elevation data attached ? |
Beta Was this translation helpful? Give feedback.
-
Thank you for that example it helps greatly! For the elevation question I was trying to display contour like colors and be able to adjust them dynamically according to elevation. |
Beta Was this translation helpful? Give feedback.
Hi ! You can see here a small example I made to display an image on each tile over the globe. You can see the result on the screenshot below, where each red rectangle is a globe tile.
You could draw on a canvas, and pass
canvas.toDataURL()
as theurl
of theTMSSource
. Is it what you need ?@gchoqueux, perhaps do you know of another way of doing so ?
About displaying tiles and elevation, I am not sure I understood what you want. Do you want to avoid displaying tiles which have non null elevation data attached ?