If the initial zoom is way smaller than the focus zoom, the first time trigger_geocode()
is called the panning will be slightly off.
It seems to happen because Leaflet will pan with the initial zoom (which is low so the panning does not have to be super precise) and then zoom.
setZoomToFocus()
should be called before mapSetCenter()
.
This way, when the panning happens, it already knows at what zoom level the marker should be into view.
I will submit a patch.
Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.