-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Map not updating when adding a new layer #15
Comments
Do you use the latest source or the NuGet package? |
Using NuGet package 0.2.27 which seems to be the latest In android I use Mapsui.UI.Android.MapView Should I update to source? |
That will not solve the problem. This needs to be fixed by calling ViewChanged in Map.LayersLayerAdded. A workaround is to call MapControl(or MapView).Map.ViewChanged(true) after you add the layer. I think the nuget version still needs an extra extent and resolution parameter. You could use the Map.Viewport's extent and resolution for that. |
I was convinced I already tried the ViewChanged method so I kept looking for other solutions. Easy fix, thanks! |
Using mapsui with Xamarin for Android/iOS I came across the problem that the map does not update when adding/removing layers, nor do I seem to find a solution to update it manually.
I'm having a custom class which inherits from the ITileSource interface, the layer is not shown until I zoom/pan the map.
The text was updated successfully, but these errors were encountered: