if I don't use style on vector layer ,ModifyFeature control works well.<br>but if I use a default style.<br>it don't work!can only selected but cann't modify!   OL2.12<br><br>var vector_line_layer = new OpenLayers.Layer.Vector(type);<br>    var vector_line_style = new OpenLayers.Style({<br>        strokeColor : "#00FFFF",<br>        strokeWidth : 3,<br>        strokeDashstyle : "longdash"<br>    });<br>    var vector_style_map = new OpenLayers.StyleMap({<br>        'default' : vector_line_style<br>    });<br>    vector_line_layer.styleMap = vector_style_map;<br>    map.addLayer(vector_line_layer);<br>    lineControl = new OpenLayers.Control.DrawFeature(vector_line_layer,<br>            OpenLayers.Handler.Path);<br>    map.addControl(lineControl);<br>    lineControl.activate();<br>    modifyControl = new OpenLayers.Control.ModifyFeature(<br>            vector_line_layer,{geometryTypes: ["OpenLayers.Geometry.LineString"]});<br>    <br>    map.addControl(modifyControl);<br>    modifyControl.mode=OpenLayers.Control.ModifyFeature.RESHAPE;<br>   modifyControl.activate();<br><br><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><font><div><span style="font-size: small;"><font color="#000080" face="Verdana"><font color="#c0c0c0" face="Verdana"><div><font color="#c0c0c0" face="Verdana"><span style="color: rgb(51, 102, 255);">========================================================================================  </span><br> </font></div></font></font><span style="color: rgb(51, 102, 255);"><br>OpenGSC<br><br>רעOGC£¬Íæ¶ùת¿ªÔ´GIS£¡</span></span><br></div></font></div></div><div> </div>