wrolpi/modules/map/test
lrnselfreliance 4f58d2862f
A style beside a PMTiles overlay says how the map draws it (#963)
When a MapLibre style (and optionally a sprite sheet) sits beside a PMTiles file, the overlay is drawn with it instead of the generic colors: `<name>.style.json` and `<name>.sprite.json/.png`, or `style.json` and `sprite.json/.png` shared by the files of a directory.

Only the style's layers which draw that file are used; its sources, sprite and glyph URLs never are.  Fonts are replaced by the ones the map has, images are pointed at the overlay's own sprite (as strings, expressions or property functions), and each layer is validated so one the map could not draw is skipped instead of stopping the map.

The sprite is served by the API, which falls back to the single resolution sheet when there is no double resolution one.
2026-11-13 15:41:43 -07:00
..
__init__.py Adding __init__ to map/test. 2022-03-09 20:10:58 -07:00
test_api.py A style beside a PMTiles overlay says how the map draws it (#963) 2026-11-13 15:41:43 -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_lib.py A style beside a PMTiles overlay says how the map draws it (#963) 2026-11-13 15:41:43 -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