質問

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