Layer Order (with polygons) and click over a non-polygon element

492
1
11-10-2011 09:49 PM
BilGis
by
New Contributor
Hi.

Working with Flex API and ArcGIS Server 10.0, I'm creating a map with several layers: one of them is a polygon one.

When clicking on another layer (points or lines) and the the polygons are overlapped, it's impossible to select the values of the points or lines unless you hide/uncheck the polygons.

I've tried by changing the layer order, but without any success.

Any similar experience? Thank you very much.
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Bill,

   There is no real simple fix for this but there is a fix. You will have to add a event listener for graphicAdd when the layers graphics are added to the map and use the graphic objects autoMoveToTop=false for just the polygon layer.

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Graphic.html


Here is a sample that demos how to use the graphicAdd event:

http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq0000003v000000.htm
0 Kudos