You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Annotation callout closes automatically when changing the viewport #3154
Complicated by the fact that SMCalloutView doesn't support a move API, just a placement/initial layout. On raster we used to use this repeatedly during viewport changes to sync up, but it became non-performant as of last check.
I have the same problem. Auto-closing of the annotation callouts after the map was moved (by app or manually by user interaction) seems to be a bad user experience. Moreover when you have a click event (button) within the callout bubble and user did a little bit move the finger while clicking, the pop-up disappears and the click event was not triggered.
As a workaround we tried a re-select of last selected annotation after a map move but that does not work really good.
changed the title [-]leave iOS annotation callout open during pans & zooms[/-][+]Annotation callout closes automatically when changing the viewport[/+]on Jul 8, 2016
As demonstrated by #1582, all we need to do is set self.calloutViewForSelectedAnnotation.frame, potentially inside a UIView animation block, instead of closing the callout view as we do now.
Activity
[-]leave annotation callout open during pans & zooms[/-][+]leave iOS annotation callout open during pans & zooms[/+]1ec5 commentedon Nov 30, 2015
Also leave it open when the user location changes: #2618.
silviokuehn commentedon Mar 4, 2016
I have the same problem. Auto-closing of the annotation callouts after the map was moved (by app or manually by user interaction) seems to be a bad user experience. Moreover when you have a click event (button) within the callout bubble and user did a little bit move the finger while clicking, the pop-up disappears and the click event was not triggered.
As a workaround we tried a re-select of last selected annotation after a map move but that does not work really good.
[-]leave iOS annotation callout open during pans & zooms[/-][+]Annotation callout closes automatically when changing the viewport[/+]1ec5 commentedon Oct 7, 2016
As demonstrated by #1582, all we need to do is set
self.calloutViewForSelectedAnnotation.frame, potentially inside a UIView animation block, instead of closing the callout view as we do now.1ec5 commentedon Dec 5, 2016
Fixed in #6676 on the v3.4.0 release branch.