图钉正在移动地图控件. [英] Pushpin is moving on map control..
问题描述
这是我的代码.
xmlns:my ="clr-namespace:Microsoft.Phone.Maps.Controls; assembly = Microsoft.Phone.Maps""
xmlns:maptoolkit =" clr-命名空间:Microsoft.Phone.Maps.Toolkit; assembly = Microsoft.Phone.Controls.Toolkit"
< my:Map x:Name ="位置"保证金="0,218,0,0&"; ZoomLevel ="8" Center ="{Binding Coordinates,Mode = TwoWay}">
< maptoolkit:MapExtensions.Children>
< maptoolkit:图钉x:Name =图钉";背景=黑色". GeoCoordinate ="{Binding Coordinates,Mode = TwoWay}"内容="gsdhvj"
></maptoolkit:图钉>
</maptoolkit:MapExtensions.Children>
</my:Map>
当iam在地图控件图钉上也在移动时...为什么会这样...我该如何解决此问题...我不想使用bingmaps控件...请建议我进行更改
您好shamiligulugapudev,
这可能是您绑定坐标的原因,并且它正在从手机GPS更新并正在更新为地图控件.
请让我知道...
This is my code..
xmlns:my="clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps"
xmlns:maptoolkit="clr-namespace:Microsoft.Phone.Maps.Toolkit;assembly=Microsoft.Phone.Controls.Toolkit"
<my:Map x:Name="location" Margin="0,218,0,0" ZoomLevel="8" Center="{Binding Coordinates,Mode=TwoWay}">
<maptoolkit:MapExtensions.Children>
<maptoolkit:Pushpin x:Name="pushpin" Background="Black" GeoCoordinate="{Binding Coordinates,Mode=TwoWay}" Content="gsdhvj"
></maptoolkit:Pushpin>
</maptoolkit:MapExtensions.Children>
</my:Map>
when iam moving on map control pushpin is also moving...why it is like that...how can i fix this issue...I don't want to use bingmaps control...please suggest me the changes in this code only...can anyone help me?
Hi shamiligulugapudev,
It could be the reason you have Binding your Coordinates, and it is updating from phone GPS and updating to map control.please let me know...
这篇关于图钉正在移动地图控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!