wrolpi/modules/map/test
lrnselfreliance b2b8e2075c
The map draws its own icons on an overlay (#967)
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.
2026-11-13 17:59:21 -07:00
..
__init__.py Adding __init__ to map/test. 2022-03-09 20:10:58 -07:00
test_api.py The map draws its own icons on an overlay (#967) 2026-11-13 17:59:21 -07:00
test_downloader.py Map downloads are checked against the hash in the signed manifest (#934) 2026-11-01 20:38:57 -07:00
test_hash_map_manifest.py Map downloads are checked against the hash in the signed manifest (#934) 2026-11-01 20:38:57 -07:00
test_icons.py The map draws its own icons on an overlay (#967) 2026-11-13 17:59:21 -07:00
test_lib.py The map draws its own icons on an overlay (#967) 2026-11-13 17:59:21 -07:00
test_map_overview_blob.py Map previews that never drew, and a Docker map with no world under it (#658) 2026-08-11 20:37:23 -06:00
test_pmtiles.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00
test_search.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00