美文网首页
获取屏幕点击位置和地图经纬度

获取屏幕点击位置和地图经纬度

作者: 傲骨天成科技 | 来源:发表于2016-03-30 21:59 被阅读257次

CGPoint touchPoint = [gestureRecognizer locationInView:self.mapView];//这里touchPoint是点击的某点在地图控件中的位置
CLLocationCoordinate2D touchMapCoordinate =
[self.mapView convertPoint:touchPoint toCoordinateFromView:self.mapView];//这里touchMapCoordinate就是该点的经纬度了

相关文章

网友评论

      本文标题: 获取屏幕点击位置和地图经纬度

      本文链接:https://www.haomeiwen.com/subject/tzlelttx.html