Skip to content

Conversation

jgillich
Copy link

@jgillich jgillich commented Aug 21, 2025

On towns with a population, it would fall back to the default places zoom of 7. This sets a mininum of 8, similar to other place types.

Also sets fallback population of cities to 50k instead of 5k

ref #506

Before & after:

Screenshot From 2025-08-21 15-26-46 Screenshot From 2025-08-21 15-26-52

On towns with a population, it would fall back to the default places zoom of 7. This sets a mininum of 8, similar to other place types.

Also sets fallback population of cities to 50k instead of 5k

ref protomaps#506
with("place", "city"),
without("population"),
use("population", 5000),
use("population", 50000),
Copy link
Collaborator

@nvkelso nvkelso Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Per the original code, this should have been 5000 -- because most big cities already have population values. Please revise.
  • The minZoom is fine at 8 (just 1 more than with populations). Your change is good.
  • (The later population_rank should be set as well so client side collisions are rational.)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The population for towns is set to 10k tho, shouldn't cities be higher? Or at least the same?
Note that I didn't touch the minZoom for cities, the diff is just rendering a bit confusingly here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nvkelso The current behaviour is incorrect since some capitals (!) are not shown, while some small, unrelated villages are visible. Could you give us any guidance what a fitting fix would be? We're open to making a PR.

use("population", 50000),
use("minZoom", 8)
),
rule(
Copy link
Collaborator

@nvkelso nvkelso Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't have a separate rule for towns with population – they are used interchangeably with cities outside of Europe. Please remove.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to OSM wiki, the median population of cities is 130k, whereas for towns it's ranging (by country) from 3k to 35k. While cities and towns may be interchangeably used sometimes, I still feel like towns are generally of less importance, wouldn't you agree?

At zoom 7, we're displaying small towns like Sursee (10k population) alongside big cities, which creates a very cluttered map unlike most other styles. Towns with a population are literally displayed before cities without a population.

@jgillich
Copy link
Author

Any feedback from maintainers? @bdon @wipfli
Thank you 😉

@wipfli
Copy link
Collaborator

wipfli commented Sep 25, 2025

Hi @jgillich. Thanks for bringing up this topic. I am not sure how to best go about place ranking. At the moment we use the classification from OSM and the total population I think. And there is a list for minzooms somewhere of a few places (maybe 10k or so). Going forward I think an interesting option could also be to work with QRank as an additional signal for the importance of a place. A combination of OSM classification, population, QRank, and an exceptions list could be a good strategy maybe.

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.

4 participants