ionic/angular leaflet directive - zoom in/out buttons do not work

后端 未结 2 656
一整个雨季
一整个雨季 2020-12-31 16:20

I have some problems with default zoom in/out buttons on leaflet map. Everything works fine when I load page directly but when I change one state to state where leaflet dire

2条回答
  •  一向
    一向 (楼主)
    2020-12-31 16:37

    Seems like ionic has a bug on the touch events handler. However, a colleague of mine came up with a workaround until it gets fixed.

    Basically, use his version of ionic.bundle.js (https://rawgit.com/cachiconato/ionic/angular-leaflet-control/release/js/ionic.bundle.js) and add 'data-do-not-set-coordinates="true"' to each possible tag linking to the map.

    http://codepen.io/anon/pen/sHpoy?editors=101

     

    {{location.name}}

提交回复
热议问题