0
Google지도에서 KML 내보내기가 있고 일부 포인터에 이미지 또는 YouTube 비디오가 있습니다. kml을 열면 youtube 및 이미지 링크가있는 포인터가있는 태그가 표시됩니다. 하지만 내가 그들을 Google Maps API에로드 할 때이 URL을 볼 수 없습니다. 포인터에서 미디어를 추출하는 일이Google Maps API로 KML에서 ExtendedData 가져 오기
function initialize() {
var mapOptions = {
center: { lat: 52.448346, lng: 4.602585},
zoom: 12
};
var map = new google.maps.Map(document.getElementById('map-canvas'),mapOptions);
var kmlLayer = new google.maps.KmlLayer({
url: 'test_1.kml',
clickable: true,
preserveViewport: true,
map: map
});
google.maps.event.addListener(kmlLayer, 'click', function(event) {
console.debug(event);
});
}
google.maps.event.addDomListener(window, 'load', initialize);
있습니까 :
이 내가 가진 무엇인가?