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] Controls not disabled in Legend tab #2692

Open
1 task done
MatthewMuehlhauserNRCan opened this issue Jan 15, 2025 · 0 comments
Open
1 task done

[BUG] Controls not disabled in Legend tab #2692

MatthewMuehlhauserNRCan opened this issue Jan 15, 2025 · 0 comments

Comments

@MatthewMuehlhauserNRCan
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When setting the highlight or zoom control to false in the map configuration, the control for the layer is still enabled in the legend tab. It is disabled in the layers tab though when you click on the layer.

The visibility control works as expected though.

Expected Behavior

When a control is configured to false, it should be disabled in the legend as well.

Steps To Reproduce

Use the below layer configuration to create the layer in the sandbox. In the legend tab, each layer has a visibility, highlight, and zoom to control. The visibility control will be disabled, but the other two will still be enabled.

{
    "geoviewLayerType": "ogcWms",
    "geoviewLayerId": "ReginaPhoto1",
    "metadataAccessPath": "https://datacube.services.geo.ca/web/napl-regina.xml",
    "listOfLayerEntryConfig": [
      {
        "layerId": "regina",
        "layerName": "Regina Airphoto",
        "initialSettings": {
          "states": {
            "opacity": 0.5
          },
          "controls": {
            "highlight": false,
            "hover": false,
            "opacity": true,
            "query": false,
            "remove": true,
            "table": false,
            "visibility": false,
            "zoom": false
          }
        }
      }
    ]
  }

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant