-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
MLNMapViewDelegate on 6.8.0 doesn't work #2993
Comments
Please provide a minimal reproduction. |
I tried to reproduce this, but I was unable. @seraph3b Can you provide the style this is happening with? Do you see any errors logged? |
we have 5 different maps and this issue happens with every maps. currently using xcode 16.1, swift package manager -> maplibre 6.8.0 with 6.7.1 it works as expected after setting style (self.mapView.styleURL = URL(string:"our map url")), map is loaded and fired:
|
Thanks. I'm investigating the issue. |
I added these delegate methods to the AnimatedLineExample.swift and used AWS Open Data Standard Light and they fired as expected. Could you share your style (can be private on Slack) so I can give it a try? |
Can you share your code? This works for me func mapView(_ mapView: MLNMapView, didFinishLoading style: MLNStyle) {
print("Map loaded")
}
func mapViewDidFinishRenderingMap(_ mapView: MLNMapView, fullyRendered: Bool) {
print("Map rendered $fullyRendered")
} |
on viewdidload:
// other stuff not related to maps then I wait for |
Could you try passing the style to MLNMapView to see if that makes a difference?
|
I have a mapView object inside a xib, so self.mapView is a weak outlet to that, I can't set as you suggested |
It's not an option even I change a lot of code because I need to change style at runtime |
maybe it's something useful, I set style inside this: |
Describe the bug
on 6.8.0 mapViewWillStartLoadingMap, mapViewDidFinishRenderingMap and mapView(_ mapView: MLNMapView, didFinishLoading style: MLNStyle) did not be fired even map appears (guess also mapViewDidFailLoadingMap and so on don't work)
To Reproduce
After loaded a style, map appears but app get stucked waiting for didfinishrenderingmap to continue
Expected behavior
delegate fired
Platform information (please complete the following information):
The text was updated successfully, but these errors were encountered: