Hi Alexandre,<br><br>No. This is very similar to what I had initially except adding "select" style to stylemap. At click on feature, the select style is applied, but no edit of vertex is possible (no drag-able circles appear on vertexes).<br>
<br>So I can make the layer editable by adding rule, but unfortunately paying with loss of context styling. Context styling works ok with your example and what I had in hand initially. If I could only include context inside rule somehow :-). <br>
<br><span style="color: rgb(0, 0, 102);">var styleMap = new OpenLayers.StyleMap(); </span><br style="color: rgb(0, 0, 102);"><br style="color: rgb(0, 0, 102);"><span style="color: rgb(0, 0, 102);">var rules = [new OpenLayers.Rule({</span><br style="color: rgb(0, 0, 102);">
<span style="color: rgb(0, 0, 102);">symbolizer: template, </span><br><span style="color: rgb(255, 0, 0);">context: context,</span><br style="color: rgb(0, 0, 102);"><span style="color: rgb(0, 0, 102);">elseFilter: true</span><br style="color: rgb(0, 0, 102);">
<span style="color: rgb(0, 0, 102);">})];</span><br style="color: rgb(0, 0, 102);">
<span style="color: rgb(0, 0, 102);">styleMap.styles["default"].addRules(rules); </span><br><br>It is midnight here, I will push on it tomorrow again. Thank you all for your kind help!<br><br>All the best,<br>Adorian<br>
<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><br></div></div></blockquote></blockquote></div><br>Dr. Adorian Ardelean<br>coordinator of myNature Project<br><br><a href="http://mybiosis.info/nature/portal.php?pagename=firstpage">http://mybiosis.info/nature/portal.php?pagename=firstpage</a> [a Romanian biodiversity-database]<br>
<a href="http://mybiosis.info/nature/portal.php?pagename=adorian">http://mybiosis.info/nature/portal.php?pagename=adorian</a> [CV]<br><br>