Skip to content

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

@Mike-Honey

Description

@Mike-Honey

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 +

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions