添加触摸事件

//触摸事件(解决点击事件无效)--触摸开始,开启拖拽
map.addEventListener('touchmove', function(e) {
map.enableDragging();
});
//触摸结束始,禁止拖拽
map.addEventListener("touchend", function(e) {
map.disableDragging();
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-02-01
  • 2021-12-09
  • 2021-09-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2023-02-14
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
相关资源
相似解决方案