-1
내가 만든 연락처 페이지에서 마커를 Google지도에 추가하려고합니다. 맵은 잘 렌더링되지만 마커는 나타나지 않습니다. Heres는 내 코드 :마커가 내지도에 추가되지 않았습니다.
function initialize() {
var latlng = new google.maps.LatLng(-43.51187,172.621192);
var myOptions = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
NSMarker();
}
// Function for adding a marker to the page.
function addMarker(location) {
marker = new google.maps.Marker({
position: location,
map: map
});
}
// Add Marker Location
function NSMarker() {
NSArchitects = new google.maps.LatLng(-43.51187,172.621192);
addMarker(NSArchitects);
}
덕분에, 나는 최대한 빨리 답을 보았다으로 대만족 순간이있을 것이다 알고 있었다. – JamiePatt