I think that would work, but it might make my code too long and unmanageable. I'd also like to avoid hard-coding as much as possible. In my post, I only used a small example of 3 layers, but my actual application has around 50 layers in it, so it's going to be huge if I make a set of controls for each of them. Thanks for the suggestion though! :)
Alex Dean wrote: > > > On Jan 5, 2010, at 11:15 AM, cgp wrote: > >> I'm not sure if I explained my problem well. But what I'm trying to >> ask is, >> how can I just use one set of these modify feature controls for many >> different overlays? I think I've got the right idea with my code, >> but I >> don't know why it's not working. >> >> Thanks in advance for your help. > > Could you create a separate set of controls for each layer, but use JS > & CSS to ensure that only the controls for the active layer are > visible? If all controls used the same CSS classes, icons, etc, the > switch from one set of controls to another should be invisible to the > user. > > alex > > > _______________________________________________ > 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-tp4256234p4261472.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
