Select to view content in your preferred language

Disable WMS getCapabilities request on not visible layers

431
0
04-20-2024 04:35 PM
patryks
Emerging Contributor

In my application, I have multiple WMS layers defined and most of them are marked as not visible. Users can toggle layer visibility in the Layer Tree widget. For each defined wms layer the getCapabilities request is sent on map initial load causing application startup to slow down significantly.

1. Is it possible to call the getCapaiblities request when user makes the layer visible?

2. Is it possible to provide all required parameters to create getMap request so the call to getCapabiilities won't be necessary? I found a similar question here: https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-wms-layer-without-getcapab... - maybe something changed in 4 years?

 

 

Tags (2)
0 Kudos
0 Replies