basemaps icon indicating copy to clipboard operation
basemaps copied to clipboard

Place labels in Uganda

Open wipfli opened this issue 1 year ago • 6 comments
trafficstars

Place labels in Uganda at high zooms look all the same. It is hard to differentiate between important cities and tiny hamlets.

https://maps.protomaps.com/#map=11.26/-1.2703/29.9839&theme=light&renderer=maplibregl&tiles=https://build.protomaps.com/20231226.pmtiles

I think it is a problem in OSM because organic maps also looks terrible in Uganda.

wipfli avatar Dec 27 '23 09:12 wipfli

Agreed... unlikely we have NE as a fallback for this level of detail. Can you investigate if any of those places have Wikidata tags, and if so is QRank a realistic option for ranking?

bdon avatar Dec 27 '23 12:12 bdon

image

Important cities seem to have wikidata in Uganda.

wipfli avatar Dec 29 '23 07:12 wipfli

Here is how a QRank based map looks like: https://wipfli.github.io/swiss-map/#map=11.26/-1.2703/29.9839

wipfli avatar Dec 29 '23 07:12 wipfli

@wipfli want to submit a PR to add QRank to the populated places layer here in Protomaps? It looks like your example repo is a custom fork with a few other things going on...

I imagine a PR here would wire in qrank generally to the project and specifically in the places layer add another sort param (getSortKey function) in the existing label grid logic. So absent population information, we'd fallback to qrank before name length?

See also:

  • https://github.com/protomaps/basemaps/blob/main/tiles/src/main/java/com/protomaps/basemap/layers/Places.java#L34-L50

nvkelso avatar Jun 18 '24 04:06 nvkelso

Thanks for asking! The code in wipfli/swiss-map was actually written independently from scratch - and hence is a bit of a mess... I am happy to incorporate QRank for label hierarchy at some point in the future, but will first look into language customization.

wipfli avatar Jun 18 '24 14:06 wipfli

We have QRank data being loaded but not used yet in our profile, so there's something to work off of.

bdon avatar Jun 19 '24 20:06 bdon