[OpenLayers-Users] Order of geometries in Vector Layer

mikeluz paweluz at o2.pl
Fri Nov 8 03:29:56 PST 2013


Hi

I have an application when I use one vector layer that can have all types of
geometries with modify feature control. What I would like to achieve is:
- I draw point
- I draw line that overlaps point
- I draw area that overlaps line and point
- I click in the middle (on cross of point, line and area)
- area is in edit mode - I WOULD LIKE TO EDIT POINT!!
So actually I would like to change the order on map so always point is on
top, then line and then area at the back. You can test it e.g in here
http://openlayers.org/dev/examples/modify-feature.html

Does anyone know how to do that? I can of course add featureadded listener
and reorganize the order of elements manually (create empty table, add first
all area elements, then line and then point), but maybe there is a nicer way
to do it?

cheers,
Pawel



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Order-of-geometries-in-Vector-Layer-tp5088150.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list