Skip to content

Commit

Permalink
Animate map smoothly when location tracking enabled (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmollin authored May 18, 2017
1 parent 170a57a commit d0e60fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapzenSDK/MZMapViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ open class MZMapViewController: UIViewController, LocationManagerDelegate {
return
}
lastSetPoint = TGGeoPoint(longitude: location.coordinate.longitude, latitude: location.coordinate.latitude)
marker.point = TGGeoPoint(longitude: location.coordinate.longitude, latitude: location.coordinate.latitude)
_ = marker.setPointEased(lastSetPoint!, seconds: 1.0, easeType: .linear)
if (shouldShowCurrentLocation) {
marker.visible = true
}
Expand Down

0 comments on commit d0e60fc

Please sign in to comment.