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

bus_stop zoom off by 1 [#163] #176

Merged
merged 2 commits into from
Nov 9, 2023
Merged

bus_stop zoom off by 1 [#163] #176

merged 2 commits into from
Nov 9, 2023

Conversation

bdon
Copy link
Member

@bdon bdon commented Nov 5, 2023

@nvkelso @eikes

We should document how this works at https://docs.protomaps.com/basemaps/layers

notably, we need to be consistent about the mismatch between 256px NE/Leaflet zooms and MapLibre zooms. when we want bus stops to display at Z18 (MapLibre) we encode min_zoom = 17 in the tiles?

Copy link

sonarqubecloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication

@nvkelso
Copy link
Collaborator

nvkelso commented Nov 9, 2023

Yes, we could straighten this out.

In the POIs layer we're setting the kind min_zooms to the 512px values (so -1 from what is in Tilezen, to then increase them on export)... also so setting the zoomRange is more straight forward.

.setAttr("pmap:min_zoom", minZoom + 1)
...snip...
.setZoomRange(Math.min(minZoom, 15), 15)

I think the other layers also follow this pattern?

@nvkelso nvkelso changed the title allow for POIs that have a display minZoom of >15 [#163] bus_stop zoom off by 1 [#163] Nov 9, 2023
@bdon bdon merged commit a37d807 into main Nov 9, 2023
5 checks passed
@bdon bdon deleted the poi-minzooms branch November 9, 2023 05:09
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

Successfully merging this pull request may close these issues.

2 participants