Skip to content

Add web map components and layer control extracted from ldproxy/ogcapi-html - #3

Merged
azahnen merged 8 commits into
mainfrom
migrate-web-map-components
Sep 30, 2026
Merged

azahnen merged 8 commits into
mainfrom
migrate-web-map-components

Conversation

@PZahnen

@PZahnen PZahnen commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Extracts the map components from ldproxy's ogcapi-html into reusable @xtramaps packages. This is the first half of the refactoring. The ldproxy side (ldproxy/ldproxy, branch migrate-web-map-components) consumes these packages and can only be merged once they are published.

New packages

  • @xtramaps/web-map-maplibre / -react: MapLibre map component, rebuilt on @vis.gl/react-maplibre and maplibre-gl 6.4 (replaces the unmaintained react-maplibre-ui). Includes style/data-layer helpers, hover/click popups and CanvasOverlay.
  • @xtramaps/layer-control-maplibre / -react: LayerControl with nested groups, radio groups and merge groups. Legend icons come from @xtramaps/legend-symbols-maplibre-react.
  • @xtramaps/web-map-openlayers / -react: 1:1 migration onto rlayers 3.9 / ol 10.8. The globalThis._map bridge is replaced by a ref API.
  • @xtramaps/web-map-cesium / -react: migrated onto @cesium/engine 26 / @cesium/widgets 16, with cleanup on unmount and error handling added.

Other changes

  • Fixed style-load race conditions and a defaultStyle merge bug in the MapLibre component
  • Storybook stories/tests for web-map-maplibre and layer-control-maplibre
  • CI now runs npm run test
  • Renovate: auto-merge policy for patch updates

Changesets for all new packages are included.

Open points

  • Initial version numbers: the new packages are already at 1.0.0 in package.json and the changesets are minor, so the first published version would be 1.1.0.

@PZahnen PZahnen self-assigned this Sep 29, 2026
@azahnen
azahnen force-pushed the migrate-web-map-components branch from 2edc0e8 to 72056a3 Compare September 30, 2026 07:28
@azahnen
azahnen merged commit d80e22d into main Sep 30, 2026
1 check passed
@azahnen
azahnen deleted the migrate-web-map-components branch September 30, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants