We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e4808 commit 9324755Copy full SHA for 9324755
Sources/MapLibreSwiftUI/MapView.swift
@@ -140,13 +140,13 @@ public extension MapView where T == MLNMapViewController {
140
locationManager: MLNLocationManager? = nil,
141
@MapViewContentBuilder _ makeMapContent: () -> [StyleLayerDefinition] = { [] }
142
) {
143
- makeViewController = {
144
- MLNMapViewController()
145
- }
146
- styleSource = .url(styleURL)
147
- _camera = camera
148
- userLayers = makeMapContent()
149
- self.locationManager = locationManager
+ self.init(
+ makeViewController: MLNMapViewController(),
+ styleURL: styleURL,
+ camera: camera,
+ locationManager: locationManager,
+ makeMapContent
+ )
150
}
151
152
0 commit comments