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

Indiana and Vermont labels are very far off center #87

Closed
zekefarwell opened this issue Jan 25, 2022 · 1 comment · Fixed by #72
Closed

Indiana and Vermont labels are very far off center #87

zekefarwell opened this issue Jan 25, 2022 · 1 comment · Fixed by #72
Labels

Comments

@zekefarwell
Copy link
Collaborator

zekefarwell commented Jan 25, 2022

This probably affects other admin_level=4 areas as well, but these are two most ridiculous looking examples I've noticed so far. Rather than having their labels in a spot that could reasonably be described as the center of the state, they are way down on the southern border for some reason.

Screen Shot 2022-01-25 at 11 37 48 AM Screen Shot 2022-01-25 at 11 37 53 AM

This only happens when using tiles from MapTiler cloud. The labels are placed sensibly when using custom generatated OpenMapTiles:

Screen Shot 2022-01-25 at 12 37 55 PM Screen Shot 2022-01-25 at 12 37 43 PM

This same issue can be see on other MapTiler map styles as well.
MapTiler Bright:

Screen Shot 2022-01-25 at 11 56 16 AM Screen Shot 2022-01-25 at 11 55 44 AM

MapTiler Topo

Screen Shot 2022-01-25 at 11 56 08 AM Screen Shot 2022-01-25 at 11 55 34 AM

@zekefarwell
Copy link
Collaborator Author

Further testing has revealed that this is an issue with the MapTiler Planet vector tile set and not with vanilla OpenMapTiles. In the MapTiler Planet tile set, most area label points are in somewhat different positions, and a few (like these examples) are in wildly different locations. This can see this in the inspect view accessible from the MapTiler cloud dashboard.

Screen Shot 2022-01-25 at 3 13 30 PM

So we can resolve this issue in config.js by changing OPENMAPTILES_URL from the MapTiler Planet url:

https://api.maptiler.com/tiles/v3/tiles.json?key=${MAPTILER_KEY}

to the OpenMapTiles url:

https://api.maptiler.com/tiles/v3-openmaptiles/tiles.json?key=${MAPTILER_KEY}

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

Successfully merging a pull request may close this issue.

2 participants