Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top