querying multiple layers, keeping featureSet symbology

06-20-2020 08:48 AM
New Contributor III

I am trying to build an app that when gets a point(for now by click), adds all intersecting items from other layers in a 1 KM radius to the map(via graphic layer).

Attached is an example I made with only 2 layers.

I don't want the layers to appear on the map in the final version(only added them to make sure it works smoothly) because ill have 7 or 8 of them.

In the example I am creating a query and querying each layer individually.

it works but in my final version with all the layers and symbols I don't think its the right way to do it.

Is it possible to query all/multipe layers at the same time?

In this example the graphic layer returns default geometry.

In the final version I want to keep the original symbols when adding the featureSets to the graphic layer.

Is it possible to keep them while querying or do I have to set the symbols upfront and iterate through the features adding them one by one?



Tags (3)
0 Kudos
0 Replies