开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜