開放街圖標誌 OpenStreetMap 開放街圖

電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

BushmanK2016年09月19日 16時51分 發表的評論

First of all, you shouldn’t really care about how it’s rendered on a map since everything is okay with a data. Standard style tries to look good, but it’s still just a technical map, not trying to pretend like it’s a political, topographical or some other specific type of map.

osm.org/relation/136712#map=11/44.9706/-93.2616 - Minneapolis osm.org/relation/136612#map=11/44.9397/-93.1061 - Saint Paul

As you can see, both boundaries have similar border type and administrative level. But what’s different, can you guess? It’s a size (I mean, width).

Math19852016年09月19日 22時06分 發表的評論

You can find the relevant code here:

https://github.com/gravitystorm/openstreetmap-carto/blob/master/project.yaml#L1555 https://github.com/gravitystorm/openstreetmap-carto/blob/master/placenames.mss#L57

Names of cities and towns are rendered in the layer placenames-medium. Each place is assigned a score, obtained by multiplying the population by 3 for national capitals, 2 for state capitals, and by 1 for other places. If a city has no population tag, 100000 is used as default.

It seems currently neither of the places have a population tag in the database, but adding both population tags wouldn’t help as Minneapolis seems to be less than twice as big as Saint Paul.

We recently had a big discussion that resulted in the current algorithm, see https://github.com/gravitystorm/openstreetmap-carto/pull/1461.

maxerickson2016年09月20日 15時18分 發表的評論

@BushmanK the boundary relations don’t factor into the label placement or sizing.

I do see population data on the place nodes.

osm.org/node/151538698

osm.org/node/151370941

登入 來留下評論