Hi, Maybe he can help you this non-standard code: "ModifyFeature-tools.js"
Could work on multilayer to modify/delete features. See examples: http://jorix.github.io/OL-Ragbag/examples/modify-feature-multilayer.html (selection own, so preferred. uses pieces of "featureclick" mentioned by "m1k3ry4n".) http://jorix.github.io/OL-Ragbag/examples/modify-feature-selectFeature.html (selection by selectFeature) To allows modify&delete use: var modify = new OpenLayers.Control.ModifyFeature(null, { layers:[bottomLayer, middleLayer, topLayer], mode: OpenLayers.Control.ModifyFeature.VERTICES | OpenLayers.Control.ModifyFeature.DELETE }); NOTE: ModifyFeature-tools.js is API compatible with OL-ModifyFeature. Regards, summer7310 wrote > Hi,all > I have a problem about Delete Control. In my map i have 3 layers and i > would like to enable the Deletefeature in each layer at the same time,but > the DeleteFeature control can only be used with a single layer at any > given time. and it seems that just the last delete control can work. > Anyone has a suggestion how to modify multiple layer? > Thanks in advance for any help. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/enable-Deletefeature-in-multiple-layer-tp5072687p5073545.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
