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

WMS setup for MAP layer not working [BUG] #701

Open
RobSaxonNokia opened this issue May 18, 2023 · 3 comments
Open

WMS setup for MAP layer not working [BUG] #701

RobSaxonNokia opened this issue May 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@RobSaxonNokia
Copy link

When using MAPS (Create a MAP visualization) you start with a world map. If you "Add" a new layer, and choose custom map, then you can configure a WMS setup. When I enter the correct data below, it never works. It seems that the GET request is not included all the necessary options. I used my own program to capture a trace. I am using HTTP to capture the trace so the setup does not work with the true HTTPS end point. However, I can see that the GET request only includes options one time then after that it does not include options. When I configure the true HTTPS I can't see if the GET request is working however, I changed the WMS URL to include all options and it works but the map is useless. My test would show that the GET request is not including the required options.

To reproduce this bug add the following:

  1. Login to OpenSearch Dashboard
  2. Select Visualize then create then choose MAP (or pick Maps from plugin and create new map).
  3. From the blank screen of the world, select Add Layer
  4. Choose Custom map
  5. Enter the WMS parameters:
  6. URL: https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer
  7. Layers: 0
  8. Version: 1.3.0
  9. Format: image/png
  10. CRS: EPSG:3857
  11. Skip next two (leave blank)
  12. Styles: default
  13. Save (click Update)
    The screen is blank. A trace of the traffic shows no options. The hack is:
  • Select your New Layer 2
  • Edit the URL and append the following (there are no spaces or line breaks starting with question mark character): ?service=WMS&version=1.3.0&request=GetMap&format=image/png&transparent=true&layers=0&styles=default&crs=EPSG:3857&width=256&height=256&bbox=0,-20037508.342789244,10018754.17139462,-10018754.171394622,0
  • Save changes

This will show something.

The issue is no WMS options are sent when configured correctly.

My environment

  • OS: Linux 4.18.0-489.el8.x86_64 Bump ini from 1.3.5 to 1.3.8 #1 SMP Thu Apr 27 17:02:11 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Chrome: Version 113.0.5672.92 (Official Build) (64-bit)
  • OpenSearch and Dashboard 2.7.0
@RobSaxonNokia RobSaxonNokia added bug Something isn't working untriaged labels May 18, 2023
@derek-ho
Copy link
Collaborator

@junqiu-lei @RobSaxonNokia this seems like a maps issue, can we move it there?

@RobSaxonNokia
Copy link
Author

RobSaxonNokia commented May 18, 2023 via email

@junqiu-lei
Copy link
Member

junqiu-lei commented May 26, 2023

@RobSaxonNokia I tried to reproduce the steps on my local(MacOS, Chrome Version 113.0.5672.92, and OpenSearch 2.7) and it works as below, is there any specific steps we're different?

@derek-ho Looks like I don't have the access to move this issue to https://github.com/opensearch-project/dashboards-maps

image image

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