Skip to content

Commit

Permalink
Minor cleanup (maplibre#52)
Browse files Browse the repository at this point in the history
* Finish MapLibre onboarding

* Fix stray bracket; finish modernizing preview
  • Loading branch information
ianthetechie authored Sep 23, 2024
1 parent 5ba75ef commit d1f9ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Any breaking API changes will be reflected in release notes.
* Add [markers](Sources/MapLibreSwiftUI/Examples/Gestures.swift), [polylines](Sources/MapLibreSwiftUI/Examples/Polyline.swift) and similar annotations
* Interaction with features through [gestures](Sources/MapLibreSwiftUI/Examples/Gestures.swift)
* Clustering (common use case that's rather difficult for first timers)
* [Overlays]](Sources/MapLibreSwiftUI/Examples/)
* [Overlays](Sources/MapLibreSwiftUI/Examples/)
* Dynamic styling
* [Camera control](Sources/MapLibreSwiftUI/Examples/Camera.swift)
* Turn-by-turn Navigation (see the showcase integrations below)
Expand Down
3 changes: 1 addition & 2 deletions Sources/MapLibreSwiftUI/MapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ public extension MapView where T == MLNMapViewController {
}
}

#Preview {
#Preview("Vanilla Map") {
MapView(styleURL: demoTilesURL)
.ignoresSafeArea(.all)
.previewDisplayName("Vanilla Map")

// For a larger selection of previews,
// check out the Examples directory, which
Expand Down

0 comments on commit d1f9ecc

Please sign in to comment.