[OpenLayers-Users] [OpenLayers-Dev] [OpenLayers-Trac]
[OpenLayers] #1483: ModifyFeature control makes SelectFeature
control to modify features
Oscar Fonts
oscar.fonts.lists at gmail.com
Mon Jun 16 12:51:44 EDT 2008
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 <eider at fh-bingen.de>:
> 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: eider at fh-bingen.de
> Internet: iis.fh-bingen.de
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080616/c8f4e580/attachment.html
More information about the Users
mailing list