Repository navigation
Conversation
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
Model classes conforming to MGLAnnotation should have names reflecting what they represent, not how they’re used on the map.
Split MGLUserLocation into separate public and private headers. Moved some MGLUserLocationAnnotationView data members into MGLUserLocation. Exposed additional user location–related properties to MGLMapView’s public interface to match MapKit. Rationalized MGLMapView’s use of properties versus ivars.
|
Looking into this now. |
|
Hmm, I'm not seeing a dot on either sim or device. |
|
Oh, heh. |
There was a problem hiding this comment.
Per #1090 we can probably move the location-related stuff here instead of including this.
There was a problem hiding this comment.
No, I’ve got a patch locally that integrates the user tracking preferences into settings_nsuserdefaults.mm. We need MGLUserTrackingMode somewhere generic so that OS X builds don’t have to include this iOS-specific header, which pulls in UIKit.
Catches scenario of showsUserLocation before map view tint set.
|
Ok @bleege @1ec5 in the interest of wrapping and iterating from there, let's try things as of the above. The one outstanding issue I'm seeing is tracking the dot to the map properly during animated zooms, like from a double-tap gesture. Current status is to make it disappear through the animation, then come back. I'm not seeing a good way to remedy without also causing the dot to appear on screen when it shouldn't (example: locate user, add points to map, which zooms, user dot is hanging out inappropriately). Thoughts? |
👍 Let's not hold the whole SDK dogfooding process up over one issue. |
|
Yep, I am seeing one more issue — user dot showing up on first call before tracking is enabled. If I can nail that and test a bit more, I'll merge pending tests. |
|
Ok, think I got it. |
|
Squash in #1110. |
This PR depends on #1074. It is a loose port of most of the GPS marker functionality in mapbox/mapbox-ios-sdk that respects the model/controller distinction that we make for annotations in this library.
Ref #756.