querying multiple layers, keeping featureSet symbology

188
0
06-20-2020 08:48 AM
deleted-user-wcpelUUf_XXx
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?

CODE:

https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000 

Tags (3)
0 Kudos
0 Replies