TerriaJS / neii-viewer

Data viewer for National Environmental Information Infrastructure
http://neii.gov.au/viewer/
Apache License 2.0
8 stars 4 forks source link

Example of using availableStyles #179

Closed martin-bom closed 3 years ago

martin-bom commented 3 years ago

Hi,

Is there an example demonstrating how to use the parameter "availableStyles" in WMS item?

I come across a WMS endpoint: https://services.ga.gov.au/gis/great-artesian-basin/wms?REQUEST=GetCapabilities&SERVICE=WMS

There are some layers having two styles and each of them have their own legend.

Can the parameter "availableStyles" capable of configuring two styles such that when I switch between style, the legend image will be updated as well? Thank you.

http://www.neii.gov.au/viewer/#share=s-dAEacsXPivBdXI73dpGQ6Uz6owG

martin-bom commented 3 years ago

I resolved it by displaying both legends together using parameter legendUrls. Close the issue.