[OpenLayers-Users] making layers with external checkboxes

Arnd Wippermann arnd.wippermann at web.de
Sat Aug 9 17:39:37 EDT 2008


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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von S.Reena
Gesendet: Samstag, 9. August 2008 09:42
An: users at openlayers.org
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
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list