wrolpi/modules/map
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
..
static The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00
test A style beside a PMTiles overlay says how the map draws it (#963) 2026-11-13 15:41:43 -07:00
__init__.py Key changes: 2026-04-04 13:48:19 -06:00
api.py A style beside a PMTiles overlay says how the map draws it (#963) 2026-11-13 15:41:43 -07:00
catalog.py Remove unused code found by vulture (#885) 2026-10-27 15:50:09 -06:00
config.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00
conftest.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00
downloader.py Map downloads are checked against the hash in the signed manifest (#934) 2026-11-01 20:38:57 -07:00
lib.py A style beside a PMTiles overlay says how the map draws it (#963) 2026-11-13 15:41:43 -07:00
models.py Key changes: 2026-04-04 13:48:19 -06:00
pins.py Configs without database rows read and validate only; imports run off the event loop (#874) 2026-10-25 15:17:31 -06:00
pmtiles.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00
schema.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00
search.py The map draws any PMTiles file as an overlay, in any sub-directory (#962) 2026-11-13 15:11:01 -07:00