-
Notifications
You must be signed in to change notification settings - Fork 22
Fix/mlwmsloader #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/mlwmsloader #254
Conversation
There was a problem hiding this 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
normalizeWmsParamsutility 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.
packages/react-maplibre/src/components/MlWmsLoader/MlWmsLoader.tsx
Outdated
Show resolved
Hide resolved
…utton positioning
No description provided.