0
나는 phonegap을 사용하여 Google지도로 작업하고 있습니다. 화면에 아래 코드를 추가했습니다. 그러나 문제는 두 손가락을 사용하여 확대하고 확대하지 않을 때입니다. 이 기능을 어떻게 추가 할 수 있습니까?google maps with phonegap
여기 내 코드입니다.
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
onSuccess();
}
function onSuccess() {
var map = document.getElementById('map');
var mapOptions = {
center : new google.maps.LatLng(37.7831, -122.4039),
zoom : 12,
mapTypeId : google.maps.MapTypeId.ROADMAP
};
var gmap = new google.maps.Map(map, mapOptions);
var markerOptions = {
position : new google.maps.LatLng(37.7831, -122.4039)
};
var marker = new google.maps.Marker(markerOptions);
marker.setMap(gmap);
var infoWindowOptions = {
content : 'Here I am'
};
var infoWindow = new google.maps.InfoWindow(infoWindowOptions);
google.maps.event.addEventListener(marker, 'click', function (e) {
infoWindow.open(map, marker);
});
}
function onError (error) {
alert('code: ' + error.code + '\n' +
'message'+ error.message
);
}