【发布时间】:2013-11-27 02:20:28
【问题描述】:
如何在 bing 地图中绑定位置(经度和纬度)??
创建地图后,我想绑定多个位置,我尝试使用此代码但无法正常工作,为什么?
<bm:Map Height="350" Credentials="xxxxxxxxxxxx" x:Name="Map" ZoomLevel="16" Margin="-27,28,10,78">
<bm:Map.Center>
<bm:Location Latitude="{Binding Longitude}" Longitude="{Binding Latitude}"/>
</bm:Map.Center>
</bm:Map>
【问题讨论】:
-
“我想绑定多个位置”,这是什么意思?您想在地图顶部显示对象(例如图钉)吗?
-
在我的应用程序 20 个地方,我想显示每个地方的地图,所以我需要绑定这些地方的所有位置
-
看看MapItemsControl。查找代码示例here。
标签: c# wpf xaml windows-8 bing-maps