angularjs - Mapbox, Ionic, ngCordova Click Issue -


i'm using:

  • mapbox (v2.2.4),
  • ionic (1.2.4-nightly-1917),
  • ngcordova (~0.1.24-alpha).

when execute ionic serve app works fine (in browser working on).

when execute ionic emulate ios -l -c (ios simulator) , simulator on, @ first click event fires , app works fine. @ random time (click random more, drag event after), broken map.on('click') event. oddly, context event, , zoom event works fine.

only map.on('click') event not working on...

map code here:

var map = l.mapbox.map('map', 'mapbox.streets', {//option streets-satellite   zoomcontrol: false,   attributioncontrol: false }).setview([37.3901086, 126.65009319999999], 17); 

i read http://ionicframework.com/docs/api/page/tap/ works first time.

=> data-tap-disabled="true" option

and read https://www.mapbox.com/help/blank-tiles/

=> map.invalidatesize();

but not working on article...


Comments