拖动图钉Windows Phone 7的Bing地图控制 [英] draggable pushpin windows phone 7 bing maps control

查看:152
本文介绍了拖动图钉Windows Phone 7的Bing地图控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有关于如何在Windows Phone 7应用程序映射一个可拖动图钉编程任何像样的资源。我有一个很好看,只能找到有关如何做到这一点的浏览器应用程序的信息。

Just wondering if there are any decent resources on how to program a draggable pushpin for a map in a windows phone 7 application. I've had a good look and can only find information about how to do it for a browser application.

理想我希望用户能够点击一个图钉并将其拖动到地图上的位置,然而,在一分钟我能想到这样做的唯一办法就是为用户拖动地图和图钉保持在地图的中心。

Ideally I want the user to be able to click on a pushpin and drag it to a location on the map however, at the minute the only way I can think of doing this is for the user to drag the map and the pushpin remains at the centre of the map.

推荐答案

我从来没见过这对WP7应用程序做 - 但是这里是Silverlight 3中的描述 - 的 http://pietschsoft.com/post/2010/05/30/Draggable-Pushpins-using-Bing -Maps-Silverlight的Control.aspx

I've not seen this done on a WP7 app yet - but here is a description for Silverlight 3 - http://pietschsoft.com/post/2010/05/30/Draggable-Pushpins-using-Bing-Maps-Silverlight-Control.aspx

在实施这个我猜你要小心在哪里,你实际上是在下降的图标关于你的手指 - 例如如果你看一下文本插入符号是如何在一个文本块移动,当你点击/保持/拖动,然后你会看到插入符位置的手指上方偏移,这样你总能看到它。

When implementing this I'd guess that you'd want to be careful about where you actually drop the icon in relation to your finger - e.g. if you look at how the text caret is moved in a text block when you click/hold/drag, then you'll see that the caret position is offset above the finger so that you can always see it.

这篇关于拖动图钉Windows Phone 7的Bing地图控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆