basemaps icon indicating copy to clipboard operation
basemaps copied to clipboard

Rome vs Vatican State

Open wipfli opened this issue 1 year ago • 5 comments

Location

https://maps.protomaps.com/#map=4.85/42/12.23&theme=light&renderer=maplibregl&tiles=https://build.protomaps.com/20240120.pmtiles

Screenshots

Screenshot_20240120-224622

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.

wipfli avatar Jan 20 '24 20:01 wipfli

@nvkelso thoughts on how to resolve this without hardcoding an exception, based on NE data?

bdon avatar Jan 21 '24 07:01 bdon

General question: Are hardcoded exceptions actually that bad of an idea?

wipfli avatar Jan 21 '24 07:01 wipfli

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?

nvkelso avatar Jan 22 '24 17:01 nvkelso

This is a common problem in almost every Mapbox-GL derived style (screenshot from Maptiler below). Only Mapbox themselves seem to get it right. image

lymperis-e avatar Feb 10 '24 12:02 lymperis-e

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...

wipfli avatar Feb 10 '24 12:02 wipfli