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

When label does not fit in the center of area, render label off-center #1069

Open
matkoniecz opened this issue Oct 16, 2014 · 8 comments
Open

Comments

@matkoniecz
Copy link
Contributor

related to #957 but I am not sure is it doable

http://www.openstreetmap.org/?mlat=50.0917&mlon=19.9920#map=14/50.0917/19.9920
przechwytywanie

on zooming in label disappears

http://www.openstreetmap.org/way/54965742#map=16/50.0916/19.9924
przechwytywanie

@daganzdaanda
Copy link

In #478 (comment), Vincent mentioned an interesting talk:

Maxim Rylov, Cartographically Plausible Label Placement.
A Multi-criteria Model for Good Point-label Placement on OSM Maps
http://sotm-eu.org/en/slots/16

From the Slides:

The model can be reproduced in your own solution or in
Mapnik, GeoServer, Mapserver, etc.

A map with a sophisticated label placement for the whole globe
http://openmapsurfer.uni-hd.de (OSM Roads layer)

The proposed model is implemented within the MapSurfer.NET framework
http://openmapsurfer.uni-hd.de/Framework/info.html

The example map looks great (when you turn off the experimental boundaries). If you look at the Czech Republic, the "Cesko" moves south when "Praha" appears.
Let's hope Mapnik can adapt these algorithms, if it hasn't yet.

@dieterdreist
Copy link

Am 22.05.2015 um 22:33 schrieb daganzdaanda [email protected]:

A map with a sophisticated label placement for the whole globe
http://openmapsurfer.uni-hd.de (OSM Roads layer)

this is a improvement but still fails on Rome for certain zoom levels (disappears and reappears on zooming in)

@kocio-pl
Copy link
Collaborator

related to #957 but I am not sure is it doable

That would be possible with a placement type grid, if it was merged into the Mapnik and available in the Carto CSS - see #2962.

@kocio-pl
Copy link
Collaborator

Maxim Rylov, Cartographically Plausible Label Placement.

Interesting to compare the label placement density in OSM Carto/GMaps then (2014) and now (2017)...

Then - 5 vs 54:

zrzut ekranu z 2017-11-28 14-56-46

Now - 9 vs 27:
screenshot-2017-11-28 map compare geofabrik tools

@kocio-pl
Copy link
Collaborator

More about Google change in the number of labels:

https://www.justinobeirne.com/what-happened-to-google-maps

@jeisenbe
Copy link
Collaborator

Requires change to v5.x since we would need to require a new Mapnik version, correct?

@kocio-pl
Copy link
Collaborator

I think you're right.

@jeisenbe
Copy link
Collaborator

OK, that should happen fairly soon, so that the unpaved rendering PR can be deployed.

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

No branches or pull requests

6 participants