File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Sources/MapLibreSwiftUI/Documentation.docc Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 1
2
+ builder :
3
+ configs :
4
+ - documentation_targets : [MapLibreSwiftUI]
5
+ platform : ios
Original file line number Diff line number Diff line change
1
+ # `` MapLibreSwiftUI ``
2
+
3
+ A SwiftUI framework for Maplibre Native iOS. Provides declarative methods for MapLibre inspired by default SwiftUI functionality.
4
+
5
+ ## Overview
6
+
7
+ ``` swift
8
+ struct MyView : View {
9
+
10
+ @State var camera: MapViewCamera = .default ()
11
+
12
+ var body: some View {
13
+ MapView (
14
+ styleURL : URL (string : " https://demotiles.maplibre.org/style.json" )! ,
15
+ camera : $camera
16
+ ) {
17
+ // Declarative overlay features.
18
+ }
19
+ .onTapMapGesture { context in
20
+ // Handle tap gesture context
21
+ }
22
+ }
23
+ }
24
+ ```
25
+
26
+ ## Topics
27
+
28
+ ### MapView
29
+
30
+ - `` MapView ``
31
+
32
+ ### MapViewCamera
33
+
34
+ - `` MapViewCamera ``
35
+ - `` CameraState ``
36
+ - `` CameraPitch ``
37
+ - `` CameraChangeReason ``
38
+
You can’t perform that action at this time.
0 commit comments