As ticket says, the code to register events: this.layer.events.on({ "featureselected": this.selectFeature, "featureunselected": this.unselectFeature, scope: this });
Should be moved from "initialize" to "activate" methods, and: this.layer.events.un({ "featureselected": this.selectFeature, "featureunselected": this.unselectFeature, scope: this }); from "destroy" to "deactivate". Working at http://www.icc.cat/vissir2/js/vissir_lib/ModifyFeature.js. Oscar. 2008/6/16 Dipl. Inf. Carsten Eider <[EMAIL PROTECTED]>: > Has anyone developed a solution or found a workaround? > > > OpenLayers schrieb: > >> #1483: ModifyFeature control makes SelectFeature control to modify >> features >> >> -----------------------------------+---------------------------------------- >> Reporter: openlayers | Owner: tschaub >> Type: bug | Status: new Priority: minor >> | Milestone: Component: Control.ModifyFeature | >> Version: 2.6 RC1 >> Keywords: | State: >> -----------------------------------+---------------------------------------- >> If I add ModifyFeature and SelectFeature controls to a map and connect >> them to the same layers, selection too becomes modification tool. When I >> select a feature with SelectFeature control I can see and change >> modification points(vertex) around the feature. The problem seems to be >> on >> ModifyFeature control. It connect events to the layer when it is >> initialized instead of when it is activated. Should those events be >> connected and disconnect on activate and deactivate operations instead? I >> attached a file that demonstrates this bug, it is modified from modify- >> feature.html example. Create polygon and click "select" radiobutton and >> select created polygon from map. >> >> >> > > -- > Mit freundlichen Grüßen / Yours faithfully > Carsten Eider > > Dipl. Inf. (FH) > > Kompetenzzentrum für Innovative Informationssysteme > > c/o Fachhochschhule Bingen / University of applied sciences Bingen > > Berlinstraße 109 > 55411 Bingen > > Tel: +49 (0) 6721 / 409-179 > Fax: +49 (0) 6721 / 409-158 > email: [EMAIL PROTECTED] > Internet: iis.fh-bingen.de > > _______________________________________________ > Dev mailing list > [EMAIL PROTECTED] > http://openlayers.org/mailman/listinfo/dev > >
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users