Closed (fixed)
Project:
Geofield Map
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2021 at 09:30 UTC
Updated:
25 Feb 2023 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
prudloff commentedComment #4
itamair commentedThanks for reporting this @prudloff
I tested your exact use case and self.mapSetCenter(mapid, position) and self.setZoomToFocus(mapid) are so close each other that they happen at the same time, and sequence is not really perceivable to me ...
I cannot reproduce at all what you define as "pans slight out of town".
May you post better evidence of your issue, such a short video recording of what you see?
Otherwise I still don't feel your correction is really needed ...
Comment #5
prudloff commentedThe sequence is not perceivable to me either. The problem is not that you can see the sequence but that the accuracy of the panning is based on the current zoom level (so the zoom should happen before the panning).
Here are screenshots with and without the patch.
Without the patch, the map is centered slight away from the marker (and if I unzoom, you can see the marker is slightly to the south-east).
Comment #6
avpadernoComment #8
itamair commentedCommitted into 3.0.x branch.