如何检查一个点是否在Skobbler地图内?

时间:2017-05-03 20:28:14

标签: objective-c skobbler-maps

使用MapKit SELECT SUM(t.price) AS subtotal, SUM(t.price) * 3.0 AS fees, SUM(t.price + fees) AS total FROM CART t 我需要使用Skobbler地图实例做类似的事情。

1 个答案:

答案 0 :(得分:0)

这是一个非常有效的解决方案:

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