【问题标题】:Google Maps marker clicks do not work on iPad when using Sencha Touch使用 Sencha Touch 时,Google 地图标记点击在 iPad 上不起作用
【发布时间】:2011-04-12 02:39:30
【问题描述】:

有没有人能够在 iPad 上获得地图标记点击?我尝试了以下方法,它在 Google Chrome 上运行良好,但在 iPad 上却不行。

// Marker
var marker = new google.maps.Marker({
    position: location,
    title: 'Title',
    map: map,
    icon: '/images/marker.gif'
});

// Click listener
google.maps.event.addListener(marker, 'click', function() {

    ...

});

【问题讨论】:

    标签: ipad google-maps google-maps-api-3 sencha-touch extjs


    【解决方案1】:

    问题在于,我本应监听“mousedown”事件时却监听了“click”事件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-02
      • 1970-01-01
      相关资源
      最近更新 更多