nst-guide / data

Create map waypoints and layers from open data sources
https://nst-guide.github.io/data/
GNU General Public License v3.0
6 stars 0 forks source link

Create overlay vector tiles #36

Closed kylebarron closed 4 years ago

kylebarron commented 4 years ago

Now that I've figured out how to use (online) vector tiles as an overlay/Fill layer in the mobile app (https://github.com/nst-guide/mobile/issues/9), create vector tiles with (all?) overlays.

Example file sizes:

Mbtiles with all of the above:

So figure out what attributes you need:

I think just an identifier is best because then you never have to update these vector tiles.

What layers should be combined?

Because the individual layer file sizes are so small, you should probably package as many of these together as you can. So have basically three vector tilesets:

Minimal required:
Anything non-default

Because the file sizes are small, package up lots of layers into a single non-default tileset.

kylebarron commented 4 years ago

I need to figure out how to display these correctly on web. As of now, they flicker when shown through Deck.gl. Maybe the new MVT layer in 8.1 could help.

kylebarron commented 4 years ago

Note however that it might be great for mobile. Because theoretically for each overlay that doesn't update like land agencies, historical wildfires, no camping zones, that can be its own vector source with its own tile JSON file. Then it would be super easy on mobile to just download it as its own pack.