CGPoint point = [mapView.projection pointForCoordinate:marker.position];

point wrong values

Printing description of point: (CGPoint) point = (x=3111.020020, y=-1354.228271)please help me

有帮助吗?

解决方案

First set GMSMarker to all marker set to call method in delay after 1 or 2

  [NSTimer scheduledTimerWithTimeInterval:1.0f
                                     target:self
                                   selector:@selector(Setviewmarker:)
                                   userInfo:nil
                                    repeats:NO];


  CGPoint point = [mapView.projection pointForCoordinate:marker.position];

point.x and point.y is position write.......

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top