Skip to content

Commit

Permalink
Upgrade to MapLibre SwiftUI 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Mar 10, 2024
1 parent 0b0362c commit 032b702
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/stadiamaps/maplibre-swift-macros.git",
"state" : {
"revision" : "507939d324a6296554894e1a534bb3f9c91a82d8",
"version" : "0.0.1"
"revision" : "9f15cbb11d2b5248ead47aecae5be8a1d4d5f463",
"version" : "0.0.2"
}
},
{
"identity" : "maplibre-swiftui-dsl-playground",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stadiamaps/maplibre-swiftui-dsl-playground",
"state" : {
"revision" : "8a9320d3d14a884405d427f1f89aa3617a48610e",
"version" : "0.0.3"
"revision" : "6b5950426cfdebd53821b8ea36cf08bb628a0466",
"version" : "0.0.6"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if useLocalMapLibreSwiftUIDSL {
} else {
maplibreSwiftUIDSLPackage = .package(
url: "https://github.com/stadiamaps/maplibre-swiftui-dsl-playground",
from: "0.0.2"
from: "0.0.6"
)
}

Expand Down
12 changes: 6 additions & 6 deletions apple/Sources/FerrostarMapLibreUI/Layers/RouteStyleLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ public struct RouteStyleLayer: StyleLayerCollection {

if let casingColor = style.casingColor {
LineStyleLayer(identifier: "\(identifier)-casing", source: source)
.lineCap(constant: style.lineCap)
.lineJoin(constant: style.lineJoin)
.lineColor(constant: casingColor)
.lineCap(style.lineCap)
.lineJoin(style.lineJoin)
.lineColor(casingColor)
.lineWidth(interpolatedBy: .zoomLevel,
curveType: .exponential,
parameters: NSExpression(forConstantValue: 1.5),
stops: NSExpression(forConstantValue: [14: 6, 18: 24]))
}

LineStyleLayer(identifier: "\(identifier)-polyline", source: source)
.lineCap(constant: style.lineCap)
.lineJoin(constant: style.lineJoin)
.lineColor(constant: style.color)
.lineCap(style.lineCap)
.lineJoin(style.lineJoin)
.lineColor(style.color)
.lineWidth(interpolatedBy: .zoomLevel,
curveType: .exponential,
parameters: NSExpression(forConstantValue: 1.5),
Expand Down
4 changes: 2 additions & 2 deletions apple/Sources/FerrostarMapLibreUI/NavigationMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public struct NavigationMapView: View {
}

SymbolStyleLayer(identifier: "user-location", source: userLocationSource)
.iconImage(constant: UIImage(systemName: "location.north.circle.fill")!)
.iconRotation(constant: Double(navigationState?.snappedLocation.courseOverGround?.degrees ?? 0))
.iconImage(UIImage(systemName: "location.north.circle.fill")!)
.iconRotation(Double(navigationState?.snappedLocation.courseOverGround?.degrees ?? 0))
}
}
.edgesIgnoringSafeArea(.all)
Expand Down

0 comments on commit 032b702

Please sign in to comment.