Skip to content

Improve map to use points on higher zoom levels #11

Open
@m-mohr

Description

@m-mohr

From Caleb:

One thing I noticed is that it is very hard to see where the kenya/rwanda examples in low zoom level. One way to get around this is to generate pmtiles that are centroids at low zoom levels and polygons at high zoom levels:
Here's how I did it for GRW (I played with drop rate on the points a bit and visualized in QGIS)
tippecanoe --drop-densest-as-needed --drop-rate=2.5 --minimum-zoom=0 --maximum-zoom=9 --force -o solar_centroids.mbtiles solar_centroids_epsg4326.geojson
tippecanoe --minimum-zoom=9 -o solar.mbtiles solar_epsg4326.geojson
tile-join --force -o output.mbtiles solar.mbtiles solar_centroids.mbtiles
on the front end you can point a bubblelayer and vectorlayer (depending on library) at the same vector tile source

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions