Skip to content
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

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

Closed
lonnyj opened this issue Mar 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lonnyj
Copy link

lonnyj commented Mar 17, 2024

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

@lonnyj lonnyj added bug Something isn't working untriaged labels Mar 17, 2024
@ashwin-pc
Copy link
Member

@opensearch-project/admin Can you move this to the maps dashboard plugin repo

@bbarani bbarani transferred this issue from opensearch-project/OpenSearch-Dashboards Mar 19, 2024
@dblock dblock removed the untriaged label Jun 17, 2024
@dblock
Copy link
Member

dblock commented Jun 17, 2024

Catch All Triage - 1 2 3 4 5

@lonnyj
Copy link
Author

lonnyj commented Jan 11, 2025

This issue is now resolved.

@lonnyj lonnyj closed this as completed Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants