当我尝试通过模板在 Windows Phone 8 中将用户位置标记添加到我的地图时,所有点都出现在地图的左上角。我确信我有不同的位置这是我的代码:
<maps:Map x:Name="myMap" Center="{Binding CenterPoint}" ZoomLevel="5">
<toolkit:MapExtensions.Children>
<ItemsControl ItemsSource="{Binding AllLocations}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Grid/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<toolkit:MapChildControl>
<toolkit:UserLocationMarker Background="Blue" Foreground="Green" GeoCoordinate="{Binding coordinate,Converter={StaticResource GeoCoordinateConverter}}"/>
</toolkit:MapChildControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</toolkit:MapExtensions.Children>
</maps:Map>