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 big states labels #3496

Merged
merged 1 commit into from
Dec 4, 2018
Merged

Conversation

kocio-pl
Copy link
Collaborator

@kocio-pl kocio-pl commented Nov 4, 2018

Follow up to #3353.

There are limits in the code for showing state labels that hide them if the area on the screen is big enough. However some huge states (further inflated by Web Mercator projection) are too big from the start, so their labels are never shown. This occurs with countries on the north, like Russia, Canada and USA (Alaska).

Removing this limit on z5 and z6 makes some cities start being visible along the state name. For Alaska it does not help, because capital is on far south and renders from z7, but at least the name of the state is shown on more than one level.

Testing on filtered subset of the planet file (osmium tags-filter -o planet-admin-2-4.osm.pbf planet-latest.osm.pbf admin_level=2 admin_level=4), so any objects other than admin data are not shown. @rrzefox could you apply this patch on your server, just in case?

Examples:

screenshot_2018-11-04 openstreetmap carto kosmtik

screenshot_2018-11-04 openstreetmap carto kosmtik 1

screenshot_2018-11-04 openstreetmap carto kosmtik 2

@rrzefox
Copy link

rrzefox commented Nov 9, 2018

@rrzefox could you apply this patch on your server, just in case?

deployed and Z0-6 rerendered.

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented Nov 9, 2018

Thanks! It looks OK, the link to compare is here:

http://bl.ocks.org/matthijsmelissen/raw/af7a602c222dbf1ff1a2c0d84ed755b7/#5.00/64.405/-141.584

@kocio-pl kocio-pl merged commit f145f77 into gravitystorm:master Dec 4, 2018
@kocio-pl kocio-pl deleted the state-labels-z5-fix branch December 4, 2018 13:25
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