mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 01:16:18 -05:00
An overlay drawn with a style of its own names icons, which needed the sprite sheet that style was made for. The map now ships icons for overlays, the Maki and Temaki sets (both CC0), and always draws those, in both viewers. The sprite sheet is the translation: its index lists every icon under its own name, under each other name it answers to (modules/map/icons/aliases.json), and in both spellings of each. A name with no icon is drawn as a plain dot. The icons are signed distance fields, so a style's icon color and halo apply. A pattern is not an icon: what it filled (a fill, a line or an extrusion) is drawn in a translucent color, where removing a pattern used to leave MapLibre's opaque black. A sprite sheet beside a map file is no longer used, served or reported. wrolpi/scripts/build_map_icons.py builds the sheet from the SVGs; the sheet is committed.
15 lines
652 B
Text
15 lines
652 B
Text
The icons the map draws on overlays
|
|
===================================
|
|
|
|
svg/maki/ Maki, by Mapbox https://github.com/mapbox/maki
|
|
svg/temaki/ Temaki, by its contributors https://github.com/rapideditor/temaki
|
|
|
|
Both sets are dedicated to the public domain under CC0 1.0 Universal; the full
|
|
text is the LICENSE.txt in each directory. The SVGs are as their authors
|
|
published them.
|
|
|
|
aliases.json Other names a map style may call an icon, and the icon it is.
|
|
exclude.json Icons of the sets which are not shipped.
|
|
|
|
The sprite sheet modules/map/static/sprites/overlay-icons* is built from these
|
|
by wrolpi/scripts/build_map_icons.py.
|