-
Notifications
You must be signed in to change notification settings - Fork 1.3k
popups #894
Comments
Also of note is that the performance implications of not doing this in GL core itself will be small. At least on iOS, only one callout is present at a time (single selection) and just simply tracks on the map. |
On Android the OS uses GL anyway to render/draw overlaid views so unlikely to be slower then rendering in our GL context. |
Split out model object protocol from view object, per MapKit and MVC. Crashes when tapping on a pin. WIP for #894
I'm grabbing this now to start on post-point annotations merge (#1021) since gestures, point-in-bounds, and platform-side callouts are all integrated. |
Annotation selection should work something like this. Note that unlike MapKit, the z-index of the selected marker doesn't change (that's in #991). This is done with something like d53fb94, which just does a dumb This is kind of like JS's |
Summarizing state of popups. The tough nut to crack here is syncing pan and zoom — including decelerated coasting — between native iOS views and the GL view. We've tried this in three branches, with varying combos of
All have been updated to The next approach I'm going to try is, since we're tracking annotations' positions GL-side, have GL update their screen position values every frame draw, and have Cocoa read out those values, translate to |
@incanus Yes, let’s fold 877-point-callout into 877-callout. That’ll make merging for 756-gps-marker easier. |
Visual syncing is currently blocked by #1026. In the meantime, I'm going to tighten up the annotation model API, get gestures/selection working, and roll a PR. |
Per chat with @1ec5, we are going to move towards dismissing any active callout for map change events for b1. We'll get back to view syncing post-b1. |
Point annotations Cocoa API for gestures and selection state is in as of eded1d9. Working on this next to integrate. |
Tapping an annotation now displays a callout view. Changing the viewport in any way dismisses the callout view. Only one callout view is displayed at a time. Ref #894
Now that we've got a PR for iOS, I'm removing this from the milestone and untagging iOS, but keeping the bug open to track the Android implementation. |
Any idea if this feature is far away? Also curious on the progress for on-annotation-click event for Android. |
Not a problem! Always happy to have a tag team partner. |
…dded so that placement can be calculated
… MapChange events
…ay of InfoWindow on long press marker addition in TestApp
…Up() to only run it when it's actual single tap. Fixing newSelectedAnnotationID to be greater than or equals to 0 to handle first annotation case
…s line up with marker. Updating marker selection and deselection logic to allow for proper selection and reselection.
See comment in mapbox#894
See comment in mapbox#894
Popups, callouts, bubbles, whatever you want to call them, we need selection state and info bubbles on markers.
Per @jfirebaugh (and I agree) we should do these for each platform because they are distinct and need to feel natural to the platform, such as being complex, even animated, views and being able to contain other platform-specific views.
For this reason, I think we should only worry about this on Android and iOS.
I've been very happy with
SMCalloutView
, which we integrated into our iOS SDK, and I think we should continue to use that here.The text was updated successfully, but these errors were encountered: