如何在地图上添加别针? [英] How add pin on map?
问题描述
我有一个观点,我有一张地图。在这个观点上,我有一个工具栏。在工具栏中,我在地图上有一个用于放置引脚的按钮。现在我想获得检测引脚下降和该点的纬度和经度的方法。例如,当用户点击按钮,然后一个销放在地图视图的中心。当用户点击引脚,然后将标题显示为该引脚下降的那个点的地址。我使用了什么功能,以便我可以在地图视图上设置该事件?如何做到这一点?
在此先感谢...
这2个问题从堆栈溢出应该可以帮助你..
I have a view in which i have a map. On that view i have a tool bar. In tool bar i have a button for drop pin on map. Now i want to get methods for detecting pin drop and latitude and longitude of that point. For example when user click on button then a pin drop on center of map view. And when user click on pin then show title as the address of that point where that pin drop. What function i use for that so that i can set that event on my map view? How do that?
Thanks in advance...
this 2 question from stack overflow should help you..
Drop pin in center of the screen, MKMapView
How to add a push pin to a MKMapView(IOS) when touching?
这篇关于如何在地图上添加别针?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!