Skip to content

Commit

Permalink
Rename navigation view to navigation map view
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Oct 9, 2023
1 parent adc6125 commit 50f1905
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import MapLibre
import MapLibreSwiftDSL
import MapLibreSwiftUI

struct NavigationView: View {
struct NavigationMapView: View {
let lightStyleURL: URL
let darkStyleURL: URL

Expand Down Expand Up @@ -94,9 +94,9 @@ struct NavigationView: View {

struct NavigationView_Previews: PreviewProvider {
// TODO: Move to environment
private static let apiKey = "YOUR-API-KEY"
private static let apiKey = "e60944cf-3ccd-4fbc-892f-73f45da31486"
static var previews: some View {
NavigationView(
NavigationMapView(
lightStyleURL: URL(string: "https://tiles.stadiamaps.com/styles/outdoors.json?api_key=\(apiKey)")!,
darkStyleURL: URL(string: "https://tiles.stadiamaps.com/styles/outdoors.json?api_key=\(apiKey)")!,
navigationState: .modifiedPedestrianExample(droppingNWaypoints: 4)
Expand Down

0 comments on commit 50f1905

Please sign in to comment.