Show results of multiple queries?

520
2
10-27-2010 10:21 AM
PatrickMaltagliati
New Contributor
I want to combine the features of multiple queries. The first query is type esriGeometryPolyline and draws AGSSimpleLineSymbol to the map. The second is type esriGeometryPoint that draws AGSSimpleMarkerSymbol at the same location as the midpoint of the lines from the first query.

How can I combine the the returned features from both queries?

Thanks.

Pat Malt
0 Kudos
2 Replies
HarikantJammi
New Contributor
Do not redisplay the graphicsLayer after getting results from first query. Redisplay only after end of second query.

So you need to call [graphicsLayer dataChanged] ; only once that too after the end of the second query only...
0 Kudos
NimeshJarecha
Esri Regular Contributor
You may like to have a look at Find Task Sample code which shows Point, Polyline and Polygon graphic features in a single graphics layer.

Regards,
Nimesh
0 Kudos