【发布时间】:2016-12-17 17:14:41
【问题描述】:
我已经创建了一个 Windows Phone 应用程序。在这个应用程序中,我使用MapControl 在地图上显示用户当前位置。
xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps"
<Maps:MapControl Grid.Row="0" Name="myMap" LandmarksVisible="True" TrafficFlowVisible="True" PedestrianFeaturesVisible="True">
</Maps:MapControl>
当用户启动应用程序时,它会显示他/她的当前位置。在这里,我想在地图上显示附近的地方,例如餐厅、加油站和所有其他可用的地方。在地图控制中你可以看到我添加了LandmarksVisible="True"。但它没有显示所有地点。当我在手机中启动 Microsoft 提供的默认 地图 应用程序时,它会显示我周围的所有地方。但在我的项目中我看不到。
注意:我还添加了 MapServiceToken 到 myMap。
如何显示附近的地点?
【问题讨论】:
标签: c# windows-phone-8.1 windows-10-mobile