mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -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. |
||
|---|---|---|
| .. | ||
| icons | ||
| static | ||
| test | ||
| __init__.py | ||
| api.py | ||
| catalog.py | ||
| config.py | ||
| conftest.py | ||
| downloader.py | ||
| lib.py | ||
| models.py | ||
| pins.py | ||
| pmtiles.py | ||
| schema.py | ||
| search.py | ||