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

show all points at certain zoom level and above #71

Open
diwakarv123 opened this issue Feb 16, 2023 · 5 comments
Open

show all points at certain zoom level and above #71

diwakarv123 opened this issue Feb 16, 2023 · 5 comments

Comments

@diwakarv123
Copy link

I am using below command to show all data points at zoom level=10. its working fine. I have noticed points are not disappearing even i zoom in further beyond 10 e.g: 12,13. Points are staying as is. This is what i wanted. i want to make sure whether this is expected behavior or not. Because it will avoid me to generate points for zoom level for 12 and 13 etc and save some pace in mbtiles .

tippecanoe -z10 -Z10 -f -o grid_26lacs_layers_time_z10.mbtiles -b0 -r1 -pk -pf /home/geos/data/input/grid_26lacs_layers_time_z10.csv

i used tippecanoe-decode command to verify points in zoom level 12 and 13. count shows 0. i am wondering whether its refresh issue of map or its expected behavior.

@ttsirkia
Copy link

Even if you generate tiles only for zoom level 10 (as your command does), MapBox GL / MapLibre can still use the zoom level 10 tiles to show data for zoom levels 12, 13 etc. Vector tiles work like this.

@ttsirkia
Copy link

You can use maxzoom in your style to hide the layer above a certain zoom level, see https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#maxzoom

@diwakarv123
Copy link
Author

diwakarv123 commented Feb 19, 2023

Even if you generate tiles only for zoom level 10 (as your command does), MapBox GL / MapLibre can still use the zoom level 10 tiles to show data for zoom levels 12, 13 etc. Vector tiles work like this.

Thanks for reply. Even i wanted them to stay for above zoom levels as per my requirement. how about lower zoom levels will they stay or vanish? I am using deckGL to display

@ttsirkia
Copy link

Mapbox / Maplibre won't try to load tiles if the minimum generated zoom level is, let's say, 10 and the zoom level in the map is 6. That would lead to situation that it needs to download a huge number of tiles of level 10 to fill the visible area in zoom level 6.

@diwakarv123
Copy link
Author

I am using below command to show all data points at zoom level=10. its working fine. I have noticed points are not disappearing even i zoom in further beyond 10 e.g: 12,13. Points are staying as is. This is what i wanted. i want to make sure whether this is expected behavior or not. Because it will avoid me to generate points for zoom level for 12 and 13 etc and save some pace in mbtiles .

tippecanoe -z10 -Z10 -f -o grid_26lacs_layers_time_z10.mbtiles -b0 -r1 -pk -pf /home/geos/data/input/grid_26lacs_layers_time_z10.csv

i used tippecanoe-decode command to verify points in zoom level 12 and 13. count shows 0. i am wondering whether its refresh issue of map or its expected behavior.

This is not working any more. when i zoom to higher level tiles are vanishing and also zooming to lower level tiles are vanishing.

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

No branches or pull requests

2 participants