<br><font size=2 face="sans-serif">I think you'll have to </font><tt><font size=2>use
a listener as you said and adjust zindex depending of the geometry type</font></tt>
<br><tt><font size=2>This might help you</font></tt>
<br><tt><font size=2>http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/ordering.html</font></tt>
<br>
<br><tt><font size=2>steve</font></tt>
<br>
<br><font size=2 face="sans-serif"><br>
</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>mikeluz <paweluz@o2.pl>@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : openlayers-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2013-11-08 06:29</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">openlayers-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[OpenLayers-Users] Order of geometries
in Vector Layer</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Hi<br>
<br>
I have an application when I use one vector layer that can have all types
of<br>
geometries with modify feature control. What I would like to achieve is:<br>
- I draw point<br>
- I draw line that overlaps point<br>
- I draw area that overlaps line and point<br>
- I click in the middle (on cross of point, line and area)<br>
- area is in edit mode - I WOULD LIKE TO EDIT POINT!!<br>
So actually I would like to change the order on map so always point is
on<br>
top, then line and then area at the back. You can test it e.g in here<br>
http://openlayers.org/dev/examples/modify-feature.html<br>
<br>
Does anyone know how to do that? I can of course add featureadded listener<br>
and reorganize the order of elements manually (create empty table, add
first<br>
all area elements, then line and then point), but maybe there is a nicer
way<br>
to do it?<br>
<br>
cheers,<br>
Pawel<br>
<br>
<br>
<br>
--<br>
View this message in context: http://osgeo-org.1560.x6.nabble.com/Order-of-geometries-in-Vector-Layer-tp5088150.html<br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
Users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>
</font></tt>
<br>
<br>
<br>