How to query layer by name?
I have multiple parcel datasets in my app. All are named [State]Parcels[County], for example FLParcelsOrange. When a user clicks on the map, I'd like to query my county line layer to get the state and county and then be able to query the appropriate parcel layer from the result. How can either query by the layer name or find the layer id at runtime?
0
-
Assuming a Get Map activity with an ID of map, you should be able to use a Create Value activity to store the layer, then use a Set Property activity to populate it using =$map.map.map.getLayer(Layer Name).
0 -
When I try to use the output of the Get Map activity, I do not see the map.getLayer(Layer Name) property and method. Any thoughts?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer