Using zoom in angular Leaftlet Directive inside ionic

I’m trying to use this library namely this example:

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?

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

Hi Mike

Thanks for pushing me create Plunker project for that:

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:

1 Like