0

有了 MapKit MKMapRectContainsPoint(self.mkMapView.visibleMapRect, MKMapPointForCoordinate(coordinate));,我需要对 Skobbler 地图实例做类似的事情。

4

1 回答 1

0

这是一个效果很好的解决方案:

CGPoint point = [self.skobblerMapView pointForCoordinate:yourCoordinate];
BOOL containsCoordinate = CGRectContainsPoint(self.skobblerMapView.bounds, point);
于 2017-05-03T20:48:40.137 回答