You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A custom spritesheet (`custom.json`, `custom.png`, `custom@2x.json`, `custom@2x.png`) can be referenced from a [MapLibre JSON style](maplibre):
81
85
82
86
```js
83
87
sprite:"https://example.com/assets/custom"
84
88
```
89
+
90
+
Sprites can be replaced with custom sets by assigning new icons to the same sprite names. Sprite names can be found in [light.json](https://github.com/protomaps/basemaps/blob/main/sprites/flavors/light.json):
91
+
92
+
```csv
93
+
townspot
94
+
capital
95
+
arrow
96
+
generic_shield-1char
97
+
...
98
+
```
99
+
100
+
To generate a spritesheet with a sigle icon based on the CC0 [Maki icon set created by Mapbox](https://github.com/mapbox/maki), use the [spreet](https://github.com/flother/spreet) command line tool:
101
+
102
+
```sh
103
+
mv airport.svg icons/aerodrome.svg
104
+
spreet icons output
105
+
# creates output.json and output.png
106
+
spreet --retina icons output@2x
107
+
#creates output@2x.json and output@2x.png, used on HiDPI displays
@@ -342,6 +344,15 @@ _NOTE: The list of kind values is not comprehensive as some raw OSM tag values a
342
344
|`wilderness_hut`||
343
345
|`zoo`| <Iconkind="zoo":sprites="sprites"/> |
344
346
347
+
348
+
### Ranking
349
+
350
+
Points of interest are sourced from OpenStreetMap, and the `wikidata` tag is joined with the [QRank](https://github.com/brawer/wikidata-qrank) dataset to determine their prominence. The determined QRank is then used to move prominent POIs to lower zoom levels.
351
+
352
+
For example, the station [Alexanderplatz](https://www.openstreetmap.org/node/3908141014) has Wikidata ID [Q698497](https://www.wikidata.org/wiki/Q698497) and a QRank of 37850. A neighboring station, [Jannowitzbrücke](https://www.openstreetmap.org/node/21487225) has Wikidata ID [Q1647893](https://www.wikidata.org/wiki/Q1647893) and a QRank of 11176. Alexanderplatz station thus appears at a lower zoom level than other stations.
353
+
354
+
To view or modify the mapping from QRank thresholds to zoom levels, see [Pois.java](https://github.com/protomaps/basemaps/blob/main/tiles/src/main/java/com/protomaps/basemap/layers/Pois.java).
355
+
345
356
## roads
346
357
347
358
Linear transportation features designed for movement, including highways, streets,
0 commit comments