Skip to content

[BUG] Maps produces WMS URLs without parameters after editing WMS layer configuration #601

@lonnyj

Description

@lonnyj

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.

  1. Go to Maps in Dashboards
  2. Click on Add layer
  3. Click on Custom map
  4. 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)
  5. Click on Settings
  6. Open the Developer Tools for your browser and select the Network tab
  7. Click the Update button
  8. 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
  9. Click on the newly created layer, New layer 2
  10. Change the WMS format to image/jpg.
  11. Click the Update button.
  12. Pan/zoom the map.
  13. 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

Screenshot 2024-03-17 at 9 44 45 AM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions