Skip to content
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

Pass geojson file through tippecanoe to show shapes at zoom 0 #7

Open
Mike-Honey opened this issue Sep 15, 2019 · 1 comment
Open

Comments

@Mike-Honey
Copy link

Is it possible to automate passing a geojson file through tippecanoe?

When I upload a geojson file into mapbox as a Tileset, it limits the "Zoom extents", typically to z6 ~ z12. The effect is when the map is first opened, it does not show any data shapes from the tileset. The user has to zoom in to see them, which is a clunky UX and prevents a view across the area of interest (Legal Amazon in Brazil).

This link is provided by mapbox for more info:
https://docs.mapbox.com/help/troubleshooting/adjust-tileset-zoom-extent/

Following those instructions I was able to get tippecanoe running over the geojson file to produce a .mbtiles file. I used parameters -Z 0 -z 13. When I uploaded that as a mapbox Tileset, the zoom extents are z0 ~ z13, and it shows dots for each shape without the user zooming - a much better UX.

I'm running windows, and tippecanoe is a linux app, so I had to install Cygwin64. Within that I run:
tippecanoe/tippecanoe -o deter.mbtiles -Z 0 -z 13 deter-amz.geojson

It takes a long time e.g. 30 minutes +

@milovanderlinden
Copy link
Contributor

Hi Mike, Mikel Maron from Mapbox promised to look at the faulty shapefile that doesn't upload correct on monday. Till he gets back to me, I prefer to pause development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants