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 styleMap as option when declaring the vector layer makes the modifyFeature control not functional.<br>
<br>var template = { <br> fillOpacity: 0.6,<br> fillColor: "red",<br> strokeColor:"orange",<br> strokeWidth:"1"<br> }; <br><br>var <span style="color: rgb(255, 0, 0);">mystyle</span> = new OpenLayers.Style(template); <br>
<br>var regions = new OpenLayers.Layer.Vector("<div class="Ih2E3d">regions",{extractAttributes:true, format: OpenLayers.Format.GeoJSON, projection: new OpenLayers.Projection("EPSG:4326"), <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'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>