Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[not ready] GPS marker (user dot) - #1082

Closed
1ec5 wants to merge 48 commits into
masterfrom
756-user-dot
Closed

1ec5 wants to merge 48 commits into
masterfrom
756-user-dot

Conversation

@1ec5

@1ec5 1ec5 commented Mar 24, 2015

Copy link
Copy Markdown
Contributor

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.

1ec5 added 6 commits March 23, 2015 14:35
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.
@1ec5 1ec5 added the iOS Mapbox Maps SDK for iOS label Mar 24, 2015
@1ec5 1ec5 added this to the iOS Beta 1 milestone Mar 24, 2015
@1ec5 1ec5 changed the title GPS marker (user dot) [blocked] GPS marker (user dot) Mar 24, 2015
@incanus incanus mentioned this pull request Mar 25, 2015
1 task done
@incanus incanus changed the title [blocked] GPS marker (user dot) [not ready] GPS marker (user dot) Mar 25, 2015
@incanus

incanus commented Mar 25, 2015

Copy link
Copy Markdown
Contributor

Looking into this now.

@incanus

incanus commented Mar 25, 2015

Copy link
Copy Markdown
Contributor

Hmm, I'm not seeing a dot on either sim or device.

@incanus

incanus commented Mar 25, 2015

Copy link
Copy Markdown
Contributor

Oh, heh. showsUserLocation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per #1090 we can probably move the location-related stuff here instead of including this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice. Carry on.

@incanus

incanus commented Mar 25, 2015

Copy link
Copy Markdown
Contributor

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?

@bleege

bleege commented Mar 26, 2015

Copy link
Copy Markdown
Contributor

in the interest of wrapping and iterating from there, let's try things as of the above.

👍 Let's not hold the whole SDK dogfooding process up over one issue.

@incanus

incanus commented Mar 26, 2015

Copy link
Copy Markdown
Contributor

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.

@incanus

incanus commented Mar 26, 2015

Copy link
Copy Markdown
Contributor

Ok, think I got it.

@incanus

incanus commented Mar 26, 2015

Copy link
Copy Markdown
Contributor

Squash in #1110.

@incanus incanus closed this Mar 26, 2015
incanus added a commit that referenced this pull request Mar 26, 2015
closes #1082, refs #756: user dot on map in iOS
@incanus
incanus deleted the 756-user-dot branch March 26, 2015 21:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

iOS Mapbox Maps SDK for iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants