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&showLayers=STIP_4YR
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?
@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.
I will add onto this thread that if you're looking to hide multiple layers, the URL path would be similar to the following (adding semi colon in between each layer ItemID): https://wisdot.maps.arcgis.com/apps/instant/nearby/index.html?appid=6c17e00bdf8d4be8bd9c7615d913af05&hiddenLayers=18b15f7aca6-layer-4;18b15f7b30d-layer-5;18b15f75fa4-layer-3;18b15f84ff0-layer-11;18b15f7d99c-layer-9;18b15f7d433-layer-8;18b15f7dfb6-layer-10;18b15f7c4c3-layer-7;18b15f7bb35-layer-6
@BethRomero Thanks for the update on this topic. Glad to hear we're able to add this functionality to the June release.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.