Thank you for your reply.  I do not have a problem loading and
unloading the KML.
The map adds and removes the points very well.  What I need help with
is when
a KML file is UnLoaded or removed, I need the corresponding entries in
the
sidebar removed.

http://www.myislamap.com/map.htm

The working checkbox I have is Getting to Isla... and it works
correctly for adding
a KML and the points, and removing it when unchecked.  However, the
behavior
I am getting is that the new points when 'checked' are added to the
sidebar.
When unchecked the items are not removed from the sidebar, even though
they are no longer on the map.  The link is then dead from the
sidebar, and
when re-checked, another duplicate entry is made to the sidebar, that
one will
work as long as the point is on the map.

Just need to remove the sidebar entries corresponding to the KML that
is
unloaded.

Thanks so much

On Nov 10, 9:19 am, Grok Lobster <[email protected]> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -

--

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=.


Reply via email to