Hi again,<br><br>I have eliminated also the context for style as a source of problem for the modifyFeature control not working. So it seems that just by specifying a&nbsp; styleMap as option when declaring the vector layer makes the modifyFeature control not functional.<br>
<br>var template = { <br>&nbsp;&nbsp;&nbsp; fillOpacity: 0.6,<br>&nbsp;&nbsp;&nbsp; fillColor: &quot;red&quot;,<br>&nbsp;&nbsp;&nbsp; strokeColor:&quot;orange&quot;,<br>&nbsp;&nbsp;&nbsp; strokeWidth:&quot;1&quot;<br>&nbsp;&nbsp;&nbsp; }; <br><br>var <span style="color: rgb(255, 0, 0);">mystyle</span> = new OpenLayers.Style(template); <br>
<br>var regions = new OpenLayers.Layer.Vector(&quot;<div class="Ih2E3d">regions&quot;,{extractAttributes:true, format: OpenLayers.Format.GeoJSON, projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;), <span style="color: rgb(255, 0, 0);">styleMap: new OpenLayers.StyleMap(mystyle)</span>});</div>
<br><br>I think the solution might be somewhere in the post: <br><h2><font size="2"><a name="a18827878">StyleMap and ModifyFeatures aren&#39;t compatible ?</a></font></h2>I will give it a try.<br><br>All the best,<br>Adorian<br>
<br><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>