Skip to content

Commit

Permalink
fix walking tour waypoint being broken on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
Eastern-Dream committed Oct 14, 2024
1 parent 75332f2 commit ec60e2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ios/Classes/MapLibreNativeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,11 @@ class MapLibreNativeView: NSObject, FlutterPlatformView, MGLMapViewDelegate {
var pathShape: MGLShape
do {
pathShape = try MGLShape(data: _pathGeoJson.data(using: String.Encoding.utf8)!, encoding: String.Encoding.utf8.rawValue)
let pathSource = MGLShapeSource(identifier: "tour_path", shape: pathShape)
style.addSource(pathSource)
} catch {
print("BAD")
return
}
let pathSource = MGLShapeSource(identifier: "tour_path", shape: pathShape)
style.addSource(pathSource)

var pointsShape: MGLShapeCollection
do {
Expand Down

0 comments on commit ec60e2d

Please sign in to comment.