Page 1 of 1

overlay kml file on google map component

Posted: Wed Mar 12, 2014 2:01 am
by Bryan Taylor

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


overlay kml file on google map component

Posted: Wed Mar 12, 2014 2:30 am
by Bryan Taylor

OK, I figured that out, and now have it working better than I thought I could get it working.

One additional problem....

how can I make the google map component fill the screen between the header and footer automatically?


overlay kml file on google map component

Posted: Wed Mar 12, 2014 2:36 am
by Igor

Hello,

Please take a look here: https://getsatisfaction.com/apperyio/...


overlay kml file on google map component

Posted: Thu Apr 23, 2015 12:26 pm
by Hazzaa Misfer ALhazzaa

Can you plase share with us how did you overlay kml file on google map component