miguelcobain/ember-leaflet

Issue with Leaflet 1.6

Closed this issue · 4 comments

When I updated to Leaflet 1.6, the center of my map doesn’t follow the @lat @ lng that I update
Everything is fine when I come back to Leaflet 1.3.4.

@clem3109 that's strange. All the tests are passing with leaflet 1.6.

Can you post a code example that fails or even better, create a pull request with a failing test?

I found out it is a bug that came with the 1.5.0 version of Leaflet, I didn’t found any obvious change that can explain the bug in the change log (https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md).

I shared my project with you, the behaviour should work like this : on click on a marker, the map should center the marker (and opens the associated modal page).
in application/template.hbs
on click action in application/controller.js
map values and functions in map/service.js
Position object in position/class.js

Erratum: the bug comes with the 1.4 version of Leaflet, so it may be due to the "new Map.panInside method (#6054 by daverayment) » commit, I’ll dig other there.

It's 2022 and new ember-leaflet and leaflet version have come out. Closing this.
Please reopen if you feel like this is still an issue.