charlenni
charlenni
If I'm correct, than you call MapControl.Navigator.NavigateTo() and don't get the desired result. Is this correct?
For me it seams, that you haven't a tile ready loaded. But why aren't the features visible? Are you at the correct bounding box? I checked here the normal NavigateTo...
The bounding box is calculated correct?
If I look into code, I would say, that the Width and Height of the Viewport aren't set correct in this moment. You could check MapControl.Viewport.HasSize. I saw this before,...
Try to use the other NavigateTo function with center and resolution. Both could be saved before pausing/closing, but doesn't use a recalculation of the resolution by viewport dimensions. This would...
You use the following function to navigate: /// /// Navigate center of viewport to center of extent and change resolution /// /// New extent for viewport to show /// Scale...
Or you could check the size of the MapControl and use this for width and height, if it is ok.
So you say, that even if you use precalculated resolutions, NavigateTo doesn‘t work, correct?
Ok. Then it is a problem in navigation and not in calculation.
I now used the Mapsui.Samples.Android sample and added the following function to it protected override void OnResume() { base.OnResume(); _mapControl.Navigator.NavigateTo(new Mapsui.Geometries.BoundingBox(-1000000, -1000000, 1000000, 1000000)); } Then I started it with...