wrolpi/app/cypress/e2e
lrnselfreliance 177d0dba4b
The standalone map viewer draws overlays, as the map does (#966)
The standalone viewer (port 8084) drew basemaps only: a map file which is
not a basemap was skipped.  It now offers each overlay in its layer panel,
hidden until turned on, with a checkbox per layer, draws it with the style
beside it when there is one, and shows a feature's attributes on a click.

The overlay logic is the map viewer's own.  It moved to dependency-free
modules (app/src/map-shared) which a browser can load as they are; the
standalone viewer, which has no build step, loads copies of them from
modules/map/static/js.  A test fails while a copy differs from its module
(`npm run sync:map-shared` makes the copies).  What differs between the
viewers is passed in: where a map file and its style are fetched from, and
whether a layer can be checked before MapLibre is given it.

The standalone viewer cannot check a layer first, so it adds an overlay's
layers to the map one at a time once the style has loaded: MapLibre refuses a
whole style over one layer it cannot draw, but only that layer when it is
added by itself.

The API also names a style by its path within the map directory, which is
what the standalone viewer is served.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 17:28:41 -07:00
..
calculators Speed Test calculator: ping, download, and upload against the API (#708) 2026-09-13 18:47:18 -06:00
domains ui: the last of Semantic UI, in name and in dead CSS 2026-08-08 18:05:54 -06:00
files 3D previews load ASCII STLs, stand upright, and fit the preview modal (#952) 2026-11-07 15:33:58 -07:00
forms Updating cypress tests for new file group routes. 2026-03-21 16:26:08 -06:00
settings Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00
caddy-media.cy.js Skipping Caddy tests on CICD. 2026-03-10 20:30:46 -06:00
keyboard-shortcuts.cy.js review: close the mixed-unit gaps the scale left behind 2026-08-08 18:05:51 -06:00
map-standalone.cy.js The standalone map viewer draws overlays, as the map does (#966) 2026-11-13 17:28:41 -07:00
map-themes.cy.js test: act on review -- the sprite gap, and the branch no e2e can reach 2026-08-08 18:05:48 -06:00