Mapsui: map.NavigateTo Doesn't refresh the tiles

Created on 19 Oct 2017  路  5Comments  路  Source: Mapsui/Mapsui

Hi,

I am using map.NavigateTo to center on a point with a reasonable zoom level, that point moves on the map and when it gets too far the map tiles are not loaded. To load the tiles I need to move my Mouse on the map.

I am using:
Mapsui: 1.1.1
NETCore.UniversalWindowsPlatform: 6.0.1

Examples:
image
image

Is there a method that I can call to refresh the map? or is NavigateTo is not built for that? if so what should I use?

Thanks.

bug 馃悰

All 5 comments

Refresh should work properly with NavigateTo. I can not reproduce it in the Mapsui sample app.

Do you have the same problem if you use:
MapControl.Map.NavigateTo(MapControl.Map.Viewport.Resolution /= 2);
(this is easy for me to test with)

You use 'NETCore.UniversalWindowsPlatform: 6.0.1'. I am not familiar with this. Is this on option when you create a new project. Like this:
image

Hi @pauldendulk,

I don't have the same issue when I use MapControl.Map.NavigateTo(MapControl.Map.Viewport.Resolution /= 2);

My UWP Min/Max version:
image
I need to use these versions as I have dependency on some .Net Standard 2.0 libraries.

image

Thanks.

ah, I can reproduce it. It is specific to UWP. Not sure yet what is happening.

It is fixed in 1.1.2: https://www.nuget.org/packages/Mapsui/

Thanks for reporting!

@pauldendulk

I've tested it, and can confirm that this issue is fixed.

But when I updated to Mapsui 1.1.2, my references got messed up.
For example:
The compiler was expecting BruTile 0.22.1, but Mapsui has only pulled 0.21.1.
The compiler was expecting SkiaSharp & SkiaSharp.View 1.59.0, but Mapsui has only pulled 1.58.1.

It was saying that the packages version was different to the actual downloaded version.
I've fixed it by manually going through dependencies and lining them up.

I am not sure if that was my Visual Studios fault or your package.config mismatching.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukaszpitulski picture lukaszpitulski  路  8Comments

othmaniav picture othmaniav  路  7Comments

lukaszpitulski picture lukaszpitulski  路  3Comments

YordanYanakiev picture YordanYanakiev  路  6Comments

TheProme picture TheProme  路  4Comments