You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tippecanoe only stores two dimensions when generating vector tiles. So if I take the 3d lines and convert them to vector tiles, I'll have no elevation data.
So my options are essentially:
GeoJSON with 3 dimensions
vector tiles of points with metadata on each point
GeoJSON of points with metadata on each
I think 2 is the best, because I can also encode the trail mile in the data.
Note that a drawback of this is that it could simplify the geometry when zoomed out, and thus you wouldn't have an exact elevation chart at low zooms. You could only show at a higher zoom, and also there's probably a tippecanoe option to not simplify as much.
Given this drawback, alternatively, 3 might be the best because there would be no simplification. Then you could have the trail line be vector tile
Also to think about:
scale of the elevation chart could change while scrolling when there's differing lengths of trail on the screen.
what components to use to render the chart. Probably the victory library, because then I can use similar syntax within react native.
The text was updated successfully, but these errors were encountered:
Note that if you run map.queryRenderedFeatures with no geometry provided, by default it runs it for the current viewport. You can still pass a specific layer id, so that you only find elevation features.
Updating elevation chart:
Tippecanoe only stores two dimensions when generating vector tiles. So if I take the 3d lines and convert them to vector tiles, I'll have no elevation data.
So my options are essentially:
I think 2 is the best, because I can also encode the trail mile in the data.
Note that a drawback of this is that it could simplify the geometry when zoomed out, and thus you wouldn't have an exact elevation chart at low zooms. You could only show at a higher zoom, and also there's probably a tippecanoe option to not simplify as much.
Given this drawback, alternatively, 3 might be the best because there would be no simplification. Then you could have the trail line be vector tile
Also to think about:
The text was updated successfully, but these errors were encountered: