Display Multiple Features From Query Layer Activity
Hello,
I have a Query Layer activity that results in many features (parcels) and I would like to display those feature in the map. I've gotten a single feature to display based on a query by using the Create Feature and Add Graphics activities but I just can't figure out how to display more than one feature. I've tried to use the Create Feature Set activity instead in hopes that it works with multiple query results but I think my geometry input isn't correct.
-
Hi Kevin - I query the features and use the Add Items to add those queried features a feature set (create this before). Use the Set Feature Symbol for this feature set and use Add Graphics to then add this feature set to the map.
Create Feature Set:
$fs1
Query:
Result: $qry1
Add Items:
Collection: $qry1.featureSet.features
Features to Add: $qry1.features
Set Map Symbol:
Symbol: $your_symbol
Feature: $qry1.featureSet.features
Add Graphics:
Feature: $qry1.featureSet.featuresHope this helps.
0 -
Hi Chris,
That was helpful. I was able to get everything setup the way you described but my results aren't exactly what I'm looking for. My Query Layer activity pulls the geometry from my Geometry Picker but its only giving me the first item from what I picked. I know that its because the Query Layer is using =$form1.state.geometryPicker1.value.geometry[0] which is just the first item in the array. I'm trying to get the geometry from multiple points to query. How would I go about this? Do I need to use For Each?
0 -
Hi, for this issue, is there a way to keep the original symbology of all the different features that are queried
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer