Select to view content in your preferred language

Show Specific Layers in Instant App

186
2
05-09-2024 05:11 AM
Labels (1)
DanJohnstonWisDOT
New Contributor

I'm developing a Nearby Instant App and am looking for functionality like Web App Builder where you can add onto a URL to show specific layers from the map using "&showLayers".  An example from Web App Builder:  https://wisdot.maps.arcgis.com/apps/webappviewer/index.html?id=f9096bc93a1a4ff38b3c9fad0c77f058&show...

I'd like the default for my app (https://wisdot.maps.arcgis.com/apps/instant/nearby/index.html?appid=6c17e00bdf8d4be8bd9c7615d913af05) to have all layers on but use the "&showLayers" functionality to show only one layer to put on specific webpages.  Is this doable in Instant Apps or are there plans to add this functionality in the future?

0 Kudos
2 Replies
BethRomero
Esri Contributor

@DanJohnstonWisDOT We are adding a URL parameter to support hiding layers, which will allow you to accomplish a similar workflow. This functionality will be part of the June update of ArcGIS Online. The parameter will be "hiddenLayers" followed by the layer ID. 

DanJohnstonWisDOT
New Contributor

@BethRomero Thanks for the update on this topic.  Glad to hear we're able to add this functionality to the June release.

0 Kudos