Google Maps marker clicks do not work on iPad when using Sencha Touch
Has anyone been able to get map marker clicks working on iPad? I have tried the following, which worked nicely on Google Chrome, but not on the iPad.
// Marker
var marker = new google.maps.Marker({
position: location,
t开发者_运维技巧itle: 'Title',
map: map,
icon: '/images/marker.gif'
});
// Click listener
google.maps.event.addListener(marker, 'click', function() {
...
});
The problem was that I was listening on "click" events when I should have been listening on "mousedown" events.
精彩评论