I use this for my purpose:

<input type="checkbox" name="iOLVisi" onclick="setVisi(' + i + ',
this.checked);">

function setVisi(idx, flag)
{
    map.layers[idx].setVisibility(flag);
} 

Arnd Wippermann


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von S.Reena
Gesendet: Samstag, 9. August 2008 09:42
An: [email protected]
Betreff: [OpenLayers-Users] making layers with external checkboxes


I have been using WMS request to make map layers.... now i want to use
external checkboxes on my html page.....so that when I click on it
..corresponding layer should appear on the map..
Can anyone guide as to how to do this....

Cheers,
Reena.


--
View this message in context:
http://www.nabble.com/making-layers-with-external-checkboxes-tp18902897p1890
2897.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to