简体   繁体   中英

UWP Map Control show nothing when zooming up

I set the Map Control's initial zoom level to 10.

After I use mouse wheel to zoom it up,it shows nothing.

If I set the accuarcy,can this be fixed?

I just try to get a high-accuracy map.

Are there any good third part map control to recommend?

code in xaml is

<Map:MapControl Name="map"
   ZoomLevel="10" Loaded="map_Loaded"
/>

code in cs is

 Geolocator geolocator = new Geolocator();
                geolocator.DesiredAccuracyInMeters = 10;
                geolocator.DesiredAccuracy = PositionAccuracy.High;
                Geoposition pos = await geolocator.GetGeopositionAsync();                                     
                Geopoint myLocation = pos.Coordinate.Point;
                // Set the map location.
                map.Center = myLocation;

I have read these: Zoom Level over 20 in UWP maps control and https://docs.microsoft.com/zh-cn/windows/uwp/maps-and-location/guidelines-and-checklist-for-detecting-location

If the map is blue, then please check the 'myLocation' value. If that is (0,0), then you are probably in the ocean.

The ms map have a bad speed in Chinese that it should spend more time to load.

When the map have nothing ,you can try use Setting->App->Offline map to download it.

The good way is use google map or baidu map .The first is use in foreign and the other is use in Chinese.

In Chinese,you need consider network problems .I have encountered a lot of problems because the network is not good.

The ms map cant tell me when it start downloading, when it is complete.

I recommend using webView to open an online map.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM