[OpenLayers-Users] Using only one set of modify feature controls for different layers?

cgp carina_palanca at forcorp.com
Wed Jan 6 12:15:41 EST 2010



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 : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> 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.



More information about the Users mailing list