Search Posts

Category: kml

How to Use Variable as location url?

Hello guys How to replace the location of file URL into variable? NgMap.getMap().then(function (map) { $scope.map = map; var myParser = new geoXML3.parser({ map: map }); myParser.parse(‘cta.kml’); }); myParser.parse is only accepting url but not variable? is this possible? var result = “<?xml version=”1.0″ encoding=”UTF-8″?> <kml xmlns=”http://earth.google.com/kml/2.1”> <!– Data derived from: Ed Knittel – || tastypopsicle.com Feel free to use this file for your own purposes. Just leave the comments and credits when doing so. […]