File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -172,21 +172,12 @@ open class NavigationMapView: UIView {
172
172
}
173
173
}
174
174
175
- var simulatesLocation : Bool = true {
176
- didSet {
177
- if simulatesLocation {
178
- mapView. location. options. puckBearingSource = . course
179
-
180
- } else {
181
- mapView. location. options. puckBearingSource = . heading
182
- }
183
- }
184
- }
175
+ var simulatesLocation : Bool = true
185
176
186
177
/**
187
178
Specifies how the map displays the user’s current location, including the appearance and underlying implementation.
188
179
189
- By default, this property is set to `UserLocationStyle.courseView`.
180
+ By default, this property is set to `UserLocationStyle.courseView`, the bearing source is location course .
190
181
*/
191
182
public var userLocationStyle : UserLocationStyle = . courseView( UserPuckCourseView ( frame: CGRect ( origin: . zero, size: 75.0 ) ) ) {
192
183
didSet {
@@ -271,7 +262,7 @@ open class NavigationMapView: UIView {
271
262
self . mapView. location. options. puckType = . puck3D( configuration)
272
263
}
273
264
}
274
- mapView. location. options. puckBearingSource = simulatesLocation ? . course : . heading
265
+ mapView. location. options. puckBearingSource = . course
275
266
}
276
267
277
268
deinit {
You can’t perform that action at this time.
0 commit comments