Using zoom in angular Leaftlet Directive inside ionic


#1

I’m trying to use this library https://github.com/tombatossals/angular-leaflet-directive/ namely this example:

http://tombatossals.github.io/angular-leaflet-directive/examples/markers-simple-example.html

The problem is to run the same code inside of ionic, by some reason zoom is not applied and always used default one

Any idea why?


#2

Can you put together an example of this? A codepen or plunkr?


#3

Hi Mike

Thanks for pushing me create Plunker project for that: http://plnkr.co/edit/8fi9dz?p=preview

I’ve figured out that the problem was in using $scope.mapCenter inside of promise in my real code.

So no problem in IonicFramework with that.

Hope that Plunker project will help someone in future :smile: