overlay kml file on google map component
Just wondering if I can overlay a kml file from a url on top of the google maps component.
Right now I have the google map component added to a page, added geolocation service, and on page load and geolocation success refresh the map and show my location on the map. works perfectly.
But for the life of me I cannot figure out how to overlay a kml file with code like this
var ctaLayer = new google.maps.KmlLayer({
url: 'http://location.of.kml.file.kml'
});
ctaLayer.setMap(map);
}
I have external links in the app now that point back to my server that opens the map and overlays the kml file and tracks the user, it works great but apple doesn't seem to like it, they want me to use native services like geolocation in the app and not link to a html file.
Is this possible? Thanks