UWP 地图控件在放大时不显示任何内容
UWP Map Control show nothing when zooming up
我将地图控件的初始缩放级别设置为 10。
我用鼠标滚轮放大后,什么也没有显示。
如果我设置了精度,这个问题可以解决吗?
我只是想得到一张高精度的地图。
有没有什么好的第三方地图控件可以推荐一下?
xaml 中的代码是
<Map:MapControl Name="map"
ZoomLevel="10" Loaded="map_Loaded"
/>
cs 中的代码是
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;
我读过这些: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
如果地图是蓝色的,请检查'myLocation'值。如果那是 (0,0),那么您可能在海洋中。
ms地图中文速度较差,加载时间较长
当地图没有内容时,您可以尝试使用设置->应用程序->离线地图下载。
好的方法是用google地图或者百度地图。第一个是国外用,另一个是中国用。
中文需要考虑网络问题,我遇到过很多问题都是因为网络不好
ms地图无法告诉我什么时候开始下载,什么时候完成。
我推荐使用webView打开在线地图。
我将地图控件的初始缩放级别设置为 10。
我用鼠标滚轮放大后,什么也没有显示。
如果我设置了精度,这个问题可以解决吗?
我只是想得到一张高精度的地图。
有没有什么好的第三方地图控件可以推荐一下?
xaml 中的代码是
<Map:MapControl Name="map"
ZoomLevel="10" Loaded="map_Loaded"
/>
cs 中的代码是
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;
我读过这些: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
如果地图是蓝色的,请检查'myLocation'值。如果那是 (0,0),那么您可能在海洋中。
ms地图中文速度较差,加载时间较长
当地图没有内容时,您可以尝试使用设置->应用程序->离线地图下载。
好的方法是用google地图或者百度地图。第一个是国外用,另一个是中国用。
中文需要考虑网络问题,我遇到过很多问题都是因为网络不好
ms地图无法告诉我什么时候开始下载,什么时候完成。
我推荐使用webView打开在线地图。