basemaps
basemaps copied to clipboard
Rome vs Vatican State
Location
https://maps.protomaps.com/#map=4.85/42/12.23&theme=light&renderer=maplibregl&tiles=https://build.protomaps.com/20240120.pmtiles
Screenshots
Problem
The label of Rome, Italy's capital, gets collided away by the label of Vatican State. I think ot is because country labels always show before city labels. But Vatican should be rather treated as a quarter of Rome. So when zooming in I expect to see Rome and once I see the city outlines I expect to see Vatican too.
@nvkelso thoughts on how to resolve this without hardcoding an exception, based on NE data?
General question: Are hardcoded exceptions actually that bad of an idea?
Let's look in the style? major cities should be preferred over minor countries and minor cities. The min_zoom should already be setup for that in the data, but MapLibre's layer based label collisions sometimes necessitates splitting the rendering into different draw layers?
This is a common problem in almost every Mapbox-GL derived style (screenshot from Maptiler below). Only Mapbox themselves seem to get it right.
Are osm identifiers stable enough to use them as ids in an exceptions list? I think for stuff like this there is no other way than making exception lists...