We really need a link to your page. First off the wall guess - the map variable is out of scope.
Chad Killingsworth On Jun 3, 6:00 pm, mike <[email protected]> wrote: > <script type="text/javascript"> > function togglePoints() { > alert("togglePoints function testing"); > var points = new > google.maps.KmlLayer('http://test.kinetic.more.net/ > google/test.kml'); > points.setMap(map); > } > </script> > > I'm using the code here hoping it will load the KML file. It does not > -- I thought it might be KML validation issues but I whittled it down > to the most simplistic KML possible and it passed validation. Is this > invalid for some reason? I want to be able to click a button and > activate a KML file in the instance of google maps. Everything else > on the test site is running fine but KML will not load. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
