-
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
Next Steps: TerrainLayer #4236
Comments
The main non-Mapbox source of terrain tiles that I know of is AWS Open Data Terrain Tiles. Note that these use a different encoding than Mapbox's tiles (source)
You can just use this tile endpoint with no access key currently required: |
Looks like Martini 0.2.0 has fixed the tranpilation issue. |
Thanks @kylebarron, I think I got the AWS source working too :) |
For now this still only works with a raster satellite image texture, right? It would be awesome for it to work eventually with other vector layers, but I get that that's probably a lot of work. |
Yeah, only raster surface paint right now. I've gathered its pretty involved to convert the vector data to a texture. I think #3935 is discussing approaches. |
|
Edit: I suppose as it is, it's possible to change meshMaxError: this.state.zoom < 10 ? 20 : 10 |
It also appears that when panning, a significant part of the slowness is that tiles outside the current viewport are still being computed. It appears that I'm just bringing this up because perceived performance might be better if there were a way to cancel generating tiles for areas that are no longer in the viewport. |
Just getting around to your comments, Kyle. It depends on the use case, but for lots of fine control over the tiles I would recommend (and plan to myself) to use the layer in non-TileLayer mode by rendering many layers with absolute URLs and maintaining my own state. Alternatively using it in TileLayer mode has a lot of extensibility options too since there are TileLayer props you can override to control loading and cacheing. |
Interesting; I've found that working with I'll probably create a separate issue about the general case of cancelling |
Continuation of #3984
To Do List
Vital Extra Credit
Feature
The text was updated successfully, but these errors were encountered: