开发者

Google Maps marker clicks do not work on iPad when using Sencha Touch

开发者 https://www.devze.com 2023-02-23 15:04 出处:网络
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.

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

精彩评论

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

关注公众号