-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Describe the bug
Editing a WMS layer in Maps causes Maps to generate WMS URLs without parameters.
To Reproduce
Steps to reproduce the behavior:
0. Ensure that you have some sort of data already loaded such as the Global Flight sample data.
- Go to Maps in Dashboards
- Click on Add layer
- Click on Custom map
- Populate the fields (WMS URL: https://mesonet.agron.iastate.edu/cgi-bin/wms/us/mrms_nn.cgi, WMS layers: mrms_p72h, WMS version: 1.3.0, WMS format: image/png, WMS CRS: EPSG:4326)
- Click on Settings
- Open the Developer Tools for your browser and select the Network tab
- Click the Update button
- Notice that the URLs contain parameters that resemble: https://mesonet.agron.iastate.edu/cgi-bin/wms/us/mrms_nn.cgi?service=WMS&version=1.3.0&request=GetMap&format=image/png&transparent=true&layers=mrms_p72h&styles=&crs=EPSG:4326&width=256&height=256&bbox=-11897270.578531113,5009377.085697312,-11271098.442818949,5635549.221409474
- Click on the newly created layer, New layer 2
- Change the WMS format to image/jpg.
- Click the Update button.
- Pan/zoom the map.
- Notice that the URLs are now all https://mesonet.agron.iastate.edu/cgi-bin/wms/us/mrms_nn.cgi without the parameters.
Expected behavior
Users should be able to edit WMS layers and have Maps continue to populate the URL parameters.
OpenSearch Version
2.12.0
Dashboards Version
2.12.0
Plugins
None. The Security plugin is also disabled.
Screenshots
Host/Environment (please complete the following information):
- OS: macOS 14.4 (23E214)
- Browser and version: Chrome 122.0.6261.129 (arm64)
- I followed the Docker Compose instructions here.
Additional context
When working, I should be able to visualize the data like this: https://mesonet.agron.iastate.edu/cgi-bin/wms/us/mrms_nn.cgi?service=WMS&version=1.3.0&request=GetMap&format=image/png&transparentx=true&layers=mrms_p72h&styles=&crs=EPSG:4326&width=512&height=512&bbox=24,-126,50,-66