Pergunta

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

Foi útil?

Solução

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.......

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top