[Geomoose-users] Use a button to show/hide layers
Vojko Daneu
vojko.daneu at mail.telepac.pt
Mon Aug 17 15:09:13 EDT 2009
Hallo,
I have two layers named "topography" and "parks".
Instead of using the checkboxes to show and hide the layers I want to use a button that calls the following function to hide the layer:
function test_hideLayer()
{
Events.triggerEvent('removelayer', 'parks');
}
and another button that calls the following function to show the layer:
function test_showLayer()
{
Events.triggerEvent('addlayer', 'parks');
}
The code does not work. Can somebody help?
Cheers, Vojko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20090817/c48d7193/attachment.html
More information about the Geomoose-users
mailing list