I've already added them both to a Control.Panel this way: panel.addControls([popupControl, drawControls.path, drawControls.polygon, drawControls.modify ]);
is it correct ? Have you got an example ? Thank you, Mario > mario1...@libero.it wrote: > > How can I deactivate the modify feature control when the select feature > > control is activated ? > > > > Is there a way to force the modify feature control disactivation when the > > other control is active ? > > > > Both controls operate on the same layer. > > You can add them both to a Control.Panel along with a Control.Navigation > widget and then it will act similar to the Control.Toolbar panel. > > -Steve W > > > Regards, > > Mario > > > > > > > > > > > > > > > >> On Friday, March 19, 2010, mario1...@libero.it <mario1...@libero.it> wrote: > >>> Hi, > >>> I've got a problem with modify feature control. > >>> It seems like onModificationStart event is call always before the other > >>> event I've got on my application even if I recall the other event. Is > >>> there a way to deactivate this control ? > >>> > >>> Here is a my code: > >>> > >>> modifyControls = { > >>> > >>> modify: new OpenLayers.Control.ModifyFeature(geometrylayer, > >>> {title:'Modifica area/percorso', > >>> displayClass: 'modify', onModificationStart:onModStart, > >>> onModificationEnd:onModEnd, onModification:onMod}) > >>> }; > >>> > >>> popupControl = new OpenLayers.Control.SelectFeature(geometrylayer, > >>> {title:'Informazioni sul contenuto' , onSelect: > >>> onContentSelectArea, onUnselect: onContentUnselect} ); > >>> > >>> > >>> When I call popupControl, it always call onModificationStart event. I > >>> don't know why. > >> Hi > >> > >> what if you deactivate the modify feature control when the select > >> feature control is activated? > >> > >> also, what version of OpenLayers are you using? > >> > >> Cheers, > >> > >> -- > >> Eric Lemoine > >> > >> Camptocamp France SAS > >> Savoie Technolac, BP 352 > >> 73377 Le Bourget du Lac, Cedex > >> > >> Tel : 00 33 4 79 44 44 96 > >> Mail : eric.lemo...@camptocamp.com > >> http://www.camptocamp.com > >> > > > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users