Add an onClick function to the checkbox
function changeMarkers(chk) {
if(chk.checked == true) {
footprint3 = new GGeoXml("http://your.kml");
map.addOverlay(footprint3);
}
if(chk.checked == false) {
map.removeOverlay(footprint3);
}
};
On Nov 9, 10:28 pm, tanos_8888888888 <[email protected]>
wrote:
> I have a small project I am doing for a tourist island in mexico
> showing some points of interest and so on.
>
> I generate the map using a KML file that is on the website itself.
>
> The code uses an GEvent.addListener(map,"addoverlay",function(overlay)
>
> to add items to the sidebar.
>
> I have several KML files that are used to show and remove markers from
> the map.
>
> How can I remove those items from the sidebar once they have been
> deselected from the checkboxes?
>
> http://www.myislamap.com/map.htm
>
> I am a novice html and javascript programmer, but can grasp things
> quickly. My expertise lies in database and application programming,
> but I am having fun doing this.
>
> Thanks in advance for any help
--
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=.