Bryan Taylor
Posts: 0
Joined: Wed Mar 12, 2014 2:01 am

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

Bryan Taylor
Posts: 0
Joined: Wed Mar 12, 2014 2:01 am

overlay kml file on google map component

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

overlay kml file on google map component

Hello,

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

Hazzaa Misfer ALhazzaa
Posts: 0
Joined: Mon Jul 28, 2014 4:33 pm

overlay kml file on google map component

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

Return to “Issues”