Wondering if anyone has any examples of turning on and off Feature layers in an appstudio app
Is there something like visible = false?
Can I turn them on and off
FeatureLayer {
ServiceFeatureTable {
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy/Geology/FeatureServer/9"
}
}
Something like this
Solved! Go to Solution.
Jay,
We have similar functionality in Map Viewer template where you can turn layers on and off, on Map details -> Content panel, see image below.
And the code to do this is at MapViewer/views/PanelPage.qml, where we set the visible property of the layer to false.
I hope this is helpful,
Erwin
Jay,
We have similar functionality in Map Viewer template where you can turn layers on and off, on Map details -> Content panel, see image below.
And the code to do this is at MapViewer/views/PanelPage.qml, where we set the visible property of the layer to false.
I hope this is helpful,
Erwin