Skip to content

[fix] WMS layer fixes 1 - #3148

Merged
igorDykhta merged 2 commits into
masterfrom
igr/wms-layer-fixes
Jul 2, 2025
Merged

[fix] WMS layer fixes 1#3148
igorDykhta merged 2 commits into
masterfrom
igr/wms-layer-fixes

Conversation

@igorDykhta

@igorDykhta igorDykhta commented Jul 2, 2025

Copy link
Copy Markdown
Collaborator
  • updated icon
  • export icon properly
  • save bounding box and zoom to bounds
  • check for name if title is missing
  • remove from EDITOR_AVAILABLE_LAYERS
  • transparent by default
  • custom deck wms layer - just started

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
@igorDykhta
igorDykhta requested review from Copilot and ilyabo July 2, 2025 09:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reinstates and refactors WMS layer support across configuration, core layers, deck.gl wrappers, icons, and UI forms.

  • Repositions and defaults enableWMSLayer in application config
  • Enhances WMSLayer with bounding-box metadata updates and adjusts transparency
  • Adds ExtendedWMSLayer wrapper, exports WMS components, and updates the icon SVG

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/utils/src/application-config.ts Moved enableWMSLayer property and updated default ordering
src/layers/src/wms-layer/wms-layer.ts Refactored imports, set transparent: true, added _getCurrentServiceLayer & updateLayerMeta
src/layers/src/wms-layer/wms-layer-icon.tsx Replaced <svg> with <g> paths and updated defaultProps
src/layers/src/index.ts Exported WMSLayerIcon
src/deckgl-layers/src/wms/wms-layer.ts Introduced ExtendedWMSLayer wrapper
src/deckgl-layers/src/index.ts Exported WMSLayer
src/constants/src/layers.ts Modified EDITOR_AVAILABLE_LAYERS (removed WMS)
src/components/src/modals/tilesets-modals/tileset-wms-form.tsx Added name fallback for title and included boundingBox
src/components/src/modals/tilesets-modals/load-tileset.tsx Imported WMSLayerIcon from @kepler.gl/layers
Comments suppressed due to low confidence (3)

src/layers/src/wms-layer/wms-layer.ts:160

  • Add unit tests for updateLayerMeta, covering cases with and without boundingBox, to verify bounds are updated correctly.
  updateLayerMeta(dataset: KeplerDataset): void {

src/layers/src/wms-layer/wms-layer.ts:42

  • Document the expected format of wmsLayer.boundingBox (e.g., [[minX, minY], [maxX, maxY]]) in the WMSLayerVisConfig type.
    boundingBox: number[][];

src/constants/src/layers.ts:567

  • Removing LAYER_TYPES.wms will disable WMS in the editor palette; restore it if WMS layers should remain selectable.
  LAYER_TYPES.geojson

Comment thread src/deckgl-layers/src/wms/wms-layer.ts
Comment thread src/layers/src/wms-layer/wms-layer.ts
@igorDykhta igorDykhta changed the title [fix] WMS layer fixes [fix] WMS layer fixes 1 Jul 2, 2025
@igorDykhta
igorDykhta merged commit 1a47e08 into master Jul 2, 2025
7 checks passed
@igorDykhta
igorDykhta deleted the igr/wms-layer-fixes branch July 2, 2025 09:48
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.

3 participants