-
-
Notifications
You must be signed in to change notification settings - Fork 15
Support Navigation #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ianthetechie
merged 26 commits into
maplibre:main
from
HudHud-Maps:enhancement/unify-navigation
Jul 15, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
113f368
Pitch improvements (#1)
hactar 347c224
Squashed commit of the following:
hactar f91d4b2
add NavigationMapView
Patrick-Kladek 13323b2
Merge branch 'main' of https://github.com/HudHud-Maps/maplibre-swiftu…
Patrick-Kladek be6fa07
add missing modifiers
Patrick-Kladek 788303e
Add Navigation Target
Patrick-Kladek f1afff5
correctly handle callbacks when ending route
Patrick-Kladek 32a03f8
fix pr comments
Patrick-Kladek c1276ab
use Style instead of MapStyleSource
Patrick-Kladek 8793414
rename state to navigationState
Patrick-Kladek 8b9390b
wrap MapView in UIViewController
Patrick-Kladek 00ac500
add generics to MapView
Patrick-Kladek b6d2b9f
remove maplibre-navigation dependency
Patrick-Kladek c1ae13b
format code
Patrick-Kladek 0346e36
fix tests
Patrick-Kladek 13a541a
allow injecting custom initialiser
Patrick-Kladek 013ef56
run linter
Patrick-Kladek 40eac45
Merge branch 'stadiamaps:main' into main
Patrick-Kladek 61c26af
Merge branch 'main' of https://github.com/HudHud-Maps/maplibre-swiftu…
Patrick-Kladek 565da23
generic init implementation to keep cleaner callsite
hactar 5ed30bd
linting
hactar 5ab5390
code review
Patrick-Kladek ebea668
add maplibre-navigation instructs to readme
Patrick-Kladek aa3f51a
swiftformat
Patrick-Kladek 18e34ac
rename to MLNMapViewController
Patrick-Kladek aece53f
remove unused modifier
Patrick-Kladek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/MapLibreSwiftDSL.xcscheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.swiftpm/xcode/xcshareddata/xcschemes/MapLibreSwiftUI-Package.xcscheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import MapLibre | ||
import UIKit | ||
|
||
public protocol MapViewHostViewController: UIViewController { | ||
associatedtype MapType: MLNMapView | ||
var mapView: MapType { get } | ||
} | ||
|
||
public final class MLNMapViewController: UIViewController, MapViewHostViewController { | ||
public var mapView: MLNMapView { | ||
Check warning on line 10 in Sources/MapLibreSwiftUI/MLNMapViewController.swift
|
||
view as! MLNMapView | ||
} | ||
|
||
override public func loadView() { | ||
view = MLNMapView(frame: .zero) | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.