-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add location tracking mode #21
Conversation
android/src/main/java/com/mapbox/mapboxgl/MapboxMapBuilder.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java
Outdated
Show resolved
Hide resolved
|
||
void setMyLocationTrackingMode(int myLocationTrackingMode); | ||
|
||
void setMyLocationVerticalAlignment(int myLocationVerticalAlignment); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not actionable atm but we might need to look into either using enums or using @StringDef/@IntDef for type safety
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's on the Java side, I thought it's enough to rely on this array.
example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
Outdated
Show resolved
Hide resolved
Thanks for your comments, @tobrun ! I love learning from you. |
…ocation Add location tracking mode
Added
myLocationTrackingMode
with the following options:None
,Tracking
,TrackingCompass
,TrackingGPS
.A callback named
onCameraTrackingDismissed
is called if the tracking mode is dismissed due to dragging of the map, etc.Added a stub (not working yet) property
myLocationVerticalAlignment
for setting the location position, similar to what is done in React Native plugin.