Skip to content

Conversation

@cioddi
Copy link
Member

@cioddi cioddi commented Jan 28, 2026

No description provided.

@cioddi cioddi requested a review from Copilot January 28, 2026 10:28
Copy link

Copilot AI left a comment

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 refactors WMS parameter handling to use normalized uppercase keys and reorganizes WMS-specific URL parameters into separate categories (base, GetCapabilities, GetMap, GetFeatureInfo). It also enhances the MlMarker component with improved styling and a close button feature.

Changes:

  • Introduced a normalizeWmsParams utility function to standardize WMS parameter keys to uppercase
  • Refactored WMS URL parameters into separate categories for different request types
  • Enhanced MlMarker component with dynamic sizing, improved styling, and an optional close button

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/react-maplibre/src/utils/wmsUtils.ts New utility file containing normalizeWmsParams function for WMS parameter normalization
packages/react-maplibre/src/hooks/useWms.ts Updated to use normalizeWmsParams and added debug console.log
packages/react-maplibre/src/components/MlWmsLoader/MlWmsLoader.tsx Refactored to use separate URL parameter categories and apply normalization throughout
packages/react-maplibre/src/components/MlWmsLayer/MlWmsLayer.tsx Updated to use normalizeWmsParams for parameter handling
packages/react-maplibre/src/components/MlMarker/MlMarker.tsx Enhanced with close button, dynamic width calculation, and improved iframe styling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cioddi cioddi merged commit bdeb006 into main Jan 28, 2026
5 of 7 checks passed
@cioddi cioddi deleted the fix/mlwmsloader branch January 28, 2026 11:15
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