I'm trying to read a simple KML with Google Maps API 3, I created KML file in Google Maps Editor, codes are google sample, i can't find where is problem.
gm-sample.html
BTM.kml
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 13,
center: {lat: 40.40926, lng: 49.86709}
});
var ctaLayer = new google.maps.KmlLayer({
url: 'itdc.byethost7.com/BTM.kml',
map: map
});
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…