jquery - Read placemark information from Google Map in Javascript -
i trying get/extract information of placemarker i.e title , coordinates google map has been loaded kml file. kml file hosted publicly google maps , loaded using v3 api, example:
var ctalayer = new google.maps.kmllayer({ url: 'https://mapsengine.google.com/map/kml?mid=' + kmlid }); ctalayer.setmap(mymap);
how can on client-side using javascript/jquery?
my first thought screen scrape can't seem find placemarker...
you need parse kml information placemark. google.maps.kmllayer doesn't give access that. if kml not on server, have access through proxy.
you load kml using third party parser (like geoxml3 or geoxml-v3, there many), internals available, but, depending on complexity of kml, might run performance issues.
Comments
Post a Comment