osm-americana/openstreetmap-americana

Use larger labels for larger cities

Open

#32 opened on Jul 12, 2021

View on GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (78 forks)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (238 stars)
PR merge metrics
 (PR metrics pending)

Description

For better map readability, more important cities should have larger labels. An analysis of why this is important can be found here: https://www.justinobeirne.com/google-maps-label-readability

OpenMapTiles has a rank column in the place layer that can be used for the functionality: https://openmaptiles.org/schema/#place

This can be implemented in a manner similar to how we set the capital and city labels: https://github.com/osm-americana/openstreetmap-americana/blob/main/style/layer/place.js#L19-L27

Contributor guide