CGPoint point = [mapView.projection pointForCoordinate:marker.position];
指向错误的值
点的打印说明:(CGPoint) point = (x=3111.020020, y=-1354.228271)
请帮帮我
最佳答案
首先将GMSMarker
设置为所有标记设置为在1或2之后延迟调用方法
[NSTimer scheduledTimerWithTimeInterval:1.0f
target:self
selector:@selector(Setviewmarker:)
userInfo:nil
repeats:NO];
CGPoint point = [mapView.projection pointForCoordinate:marker.position];
point.x
和point.y
是位置写.......
关于ios - 如何获取 GMSMarker X 和 y 坐标 iOS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23197315/