-1
안녕하세요 현재 위치에 마커를 배치하려고했지만 아래 코드가 로스 아틀라스로 되돌아갑니다. 마커를 꺼내면 내 위치를 찾습니다. 어떻게해야합니까? 마커가 작동합니까?Google지도가 로스 아토스에 위치를 유지합니다
Ext.define('FirstApp.view.Mapd',{
extend:'Ext.Panel',
xtype:'maps',
config : {
fullscreen: true,
layout: 'fit',
title:'Map',
iconCls:'map',
items: [{
xtype: 'map',
mapOptions : {
useCurrentLocation: true,
zoom : 12,
mapTypeId : google.maps.MapTypeId.ROADMAP,
navigationControl: true,
navigationControlOptions: {
style: google.maps.NavigationControlStyle.DEFAULT
}
},
listeners: {
maprender: function(comp, map) {
var marker = new google.maps.Marker({
map : map,
position : map.center,
title : "Me",
animation: google.maps.Animation.BOUNCE
});
setTimeout(function() {
map.panTo(map.center);
}, 1000);
}
}
}]
}
})
) 현재 위치에서 지금을 의미합니다. 그건 실종 된 것 같습니다. – Rafe