从 Bing 地图中删除图钉
我不太明白为什么这不起作用:(Bing 映射 silverlight 控件 WP7)
在此处添加图钉:
GeoCoordinate location = new GeoCoordinate();
location.Latitude = 51.5;
location.Longitude = 0;
pushpin1.Location = location;
map1.Children.Add(pushpin1);
在此处删除图钉:
map1.Children.Remove(pushpin1);
这不会删除图钉,我做错了什么?
谢谢。
I do not quite understand why this isnt working: (Bing maps silverlight control WP7)
Add a pushpin here:
GeoCoordinate location = new GeoCoordinate();
location.Latitude = 51.5;
location.Longitude = 0;
pushpin1.Location = location;
map1.Children.Add(pushpin1);
Remove the pushpin here:
map1.Children.Remove(pushpin1);
This wont remove the pushpin, what am I doing wrong?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我让它与以下代码一起工作:
I got this to work with the following code: