Eric, my last reply was to Alex's post. My code does exactly what you said. :)
Thanks Eric Lemoine-2-2 wrote: > > > I'm not suggesting that. I'm suggesting creating a function that > receives a layer, destroys the existing controls (if any), and creates > new ones (configured with the passed layer). It's only 4 or 5 > controls to destroy and create on each call to this function. > > Alternatively, you can add a setLayer method to the modify feature > control. I'm not sure but the select feature control may have a > setLayer method already, that would probably help you. > > 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 : [email protected] > http://www.camptocamp.com > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Using-only-one-set-of-modify-feature-controls-for-different-layers-tp4256234p4261911.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
