Try this demo
http://gmaps-samples.googlecode.com/svn/trunk/markerhider/markerhider.htm

Ralph

On Jan 19, 4:49 am, Sandro007 <[email protected]> wrote:
> Hi,
>
> I am having some trouble to make it work a onclick checkbox function.
> If you click on the checkbox it should make the marker disappear. The
> trouble page is:http://www.floripaimages.com/maps/lodging.php- not working
>
> The page above is working as it should 
> be:http://www.floripaimages.com/maps/floripa_map_lodging.htm- working
>
> There might be something wrong with the script bellow:
>
> function showpousada(pousada){
> map.closeInfoWindow();
> if (document.getElementById(pousada).checked==false) {
> for (var i=0;i<customIcons.length;i++) {
> map.removeOverlay(customIcons[type]);}
> } else {
>
> for (var i=0;i<customIcons[type].length;i++) {
> map.addOverlay(customIcons[type]);
>
> }
> }
> }
>
> Any idea that could help me ?
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to