Read KML Layer into Google Maps / unterminated string literal error
I have a error reading in the console replying that I have an unterminated
string literal. I'm frankly a little confused as to why this shows. The
.kml file should be good as I imported it from another source. Anybody
have any suggestions? I've abstained from writing the kml file to the
forum because it would take a lot of space.
function readKML() {
var ctalayer = new google.maps.KmlLayer("filtered.kml");
if(ctalayer !== null){
console.log("CTA Layer is a go");
ctalayer.setMap(map);
}
else(console.log("CTALayer is not defined"));
}
No comments:
Post a Comment