-
-
Notifications
You must be signed in to change notification settings - Fork 76
fix: missing minZoom on towns #510
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,11 @@ public Places(CountryCoder countryCoder) { | |
| rule( | ||
| with("place", "city"), | ||
| without("population"), | ||
| use("population", 5000), | ||
| use("population", 50000), | ||
| use("minZoom", 8) | ||
| ), | ||
| rule( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| with("place", "town"), | ||
| use("minZoom", 8) | ||
| ), | ||
| rule( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5000-- because most big cities already have population values. Please revise.There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.