iOS_MovingAnnotation_Demo icon indicating copy to clipboard operation
iOS_MovingAnnotation_Demo copied to clipboard

使用2D地图 pointForMapPoint:这个方法不生效

Open CoderXXLee opened this issue 8 years ago • 3 comments

使用2D地图 @interface MAMapView(Additional)

-(CGPoint)pointForMapPoint:(MAMapPoint)mapPoint; @end 这个方法不生效

CoderXXLee avatar May 04 '16 06:05 CoderXXLee

@lxc1999110 2D地图没有这个接口,可以使用其他接口将MapPoint转换为屏幕坐标。具体可以咨询高德API团队。

cysgit avatar Jun 17 '16 08:06 cysgit

关于这个问题 我已经找到了解决方案 用其他方式进行了替换

CLLocationCoordinate2D coo = BMKCoordinateForMapPoint(mappoint);
CGPoint center = [self.mapView convertCoordinate:coo toPointToView:self.mapView];

用这两句代码替换pointForMapPoint这个方法即可

liaolongcheng avatar Sep 01 '16 11:09 liaolongcheng

CLLocationCoordinate2D coo = BMKCoordinateForMapPoint(mappoint); CGPoint center = [self.mapView convertCoordinate:coo toPointToView:self.mapView]; 这个方法还是不行啊,请问哪里还需要设置吗?

VinlorJiang avatar Sep 07 '16 02:09 VinlorJiang