Add and Remove KML overlay to a Google Map from external link -
i'm trying emulate functionality
i want able add , remove postcode region external link / checkbox. have kml file loading correctly using code have no idea how attach external event listener / handler.
function initialize() { var london = new google.maps.latlng(51.522416,-0.11673); var mapoptions = { zoom: 11, center: london, maptypeid: google.maps.maptypeid.roadmap } var map = new google.maps.map(document.getelementbyid('map-canvas'), mapoptions); var ctalayer = new google.maps.kmllayer({ url: 'path/to/kml', suppressinfowindows: true }); ctalayer.setmap(map); } google.maps.event.adddomlistener(window, 'load', initialize);
i've tried looking in ctalayer object individual nodes kml file dont seem there.
Comments
Post a Comment