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

Alex Dean alex at crackpot.org
Tue Jan 5 18:46:04 EST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100105/3b465269/PGP.bin


More information about the Users mailing list