Skip to content

Commit

Permalink
Disable line distance metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
frederoni committed Dec 5, 2018
1 parent 3221078 commit baa920e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MapboxNavigation/NavigationMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ open class NavigationMapView: MGLMapView, UIGestureRecognizerDelegate {
source.shape = polylines
sourceSimplified.shape = mainPolylineSimplified
} else {
let lineSource = MGLShapeSource(identifier: sourceIdentifier, shape: polylines, options: [.lineDistanceMetrics: true])
let lineCasingSource = MGLShapeSource(identifier: sourceCasingIdentifier, shape: mainPolylineSimplified, options: [.lineDistanceMetrics: true])
let lineSource = MGLShapeSource(identifier: sourceIdentifier, shape: polylines, options: nil)
let lineCasingSource = MGLShapeSource(identifier: sourceCasingIdentifier, shape: mainPolylineSimplified, options: nil)
style.addSource(lineSource)
style.addSource(lineCasingSource)

Expand Down

0 comments on commit baa920e

Please sign in to comment.