How to check if a point is inside Skobbler map?

38 Views Asked by At

With MapKit there's MKMapRectContainsPoint(self.mkMapView.visibleMapRect, MKMapPointForCoordinate(coordinate)); and I need to do something similar with a Skobbler map instance.

1

There are 1 best solutions below

0
drulang On BEST ANSWER

Here's a solution that works pretty well:

CGPoint point = [self.skobblerMapView pointForCoordinate:yourCoordinate];
BOOL containsCoordinate = CGRectContainsPoint(self.skobblerMapView.bounds, point);