Replies: 3 comments 1 reply
-
Can you share how you are setting your style? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm instantiating the map in struct MapViewRepresentable: UIViewRepresentable {
func makeUIView(context: Context) -> MLNMapView {
let mapView = MLNMapView()
...
return mapView
}
func updateUIView(_ mapView: MLNMapView, context: Context) {
mapView.styleURL = myRemoteStyleUrl
...
}
} I see in the delegate callbacks that the map is also trying to load the default style. In the calls below I'm logging style name: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Looks like the behavior that was already reported here #709, right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that MapLibre starts loading and sets its default style before I apply my custom style. This results in map showing a default colorful MapLibre style before the correct style is fetched from the internet.
I can see the same behaviour when using a local JSON style file. The map attempts load of the default style before loading my custom style.
The style being loaded can be seen in
didFinishLoadingStyle
delegate call. There I found that the initial loaded style is:Default style load is followed by the load of my custom style.
Is there a way to overwrite the default MapLibre style so it does not load it whatsoever and goes straight into loading my custom style?
Beta Was this translation helpful? Give feedback.
All reactions