GPKGMapUtils
Objective-C
@interface GPKGMapUtils : NSObject
Swift
class GPKGMapUtils : NSObject
Map utility methods
-
Get the current zoom level of the map view
Declaration
Objective-C
+ (double)currentZoomWithMapView:(MKMapView *)mapView;
Swift
class func currentZoom(with mapView: MKMapView!) -> Double
Parameters
mapView
map view
Return Value
current zoom level
-
Get the current rounded zoom level of the map view
Declaration
Objective-C
+ (int)currentRoundedZoomWithMapView:(MKMapView *)mapView;
Swift
class func currentRoundedZoom(with mapView: MKMapView!) -> Int32
Parameters
mapView
map view
Return Value
current zoom level
-
Get the tolerance distance meters in the current region of the visible map view. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.
Declaration
Objective-C
+ (double)toleranceDistanceInMapView:(MKMapView *)mapView;
Swift
class func toleranceDistance(in mapView: MKMapView!) -> Double
Parameters
mapView
map view
Return Value
tolerance distance in meters
-
Get the tolerance distance meters in the current region of the visible map projected bounds. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.
Declaration
Objective-C
+ (double)toleranceDistanceWithWidth:(float)viewWidth andHeight:(float)viewHeight andBoundingBox:(GPKGBoundingBox *)boundingBox inProjection:(PROJProjection *)projection;
Swift
class func toleranceDistance(withWidth viewWidth: Float, andHeight viewHeight: Float, andBoundingBox boundingBox: GPKGBoundingBox!, in projection: PROJProjection!) -> Double
Parameters
viewWidth
view width
viewHeight
view height
boundingBox
bounding box
projection
bounding box projection
Return Value
tolerance distance in meters
-
Get the tolerance distance meters in the current region of the visible map bounds. Tolerance distance can be used for geometry simplification and is approximately the number of meters per view pixel.
Declaration
Objective-C
+ (double)toleranceDistanceWithWidth:(float)viewWidth andHeight:(float)viewHeight andBoundingBox:(GPKGBoundingBox *)boundingBox;
Swift
class func toleranceDistance(withWidth viewWidth: Float, andHeight viewHeight: Float, andBoundingBox boundingBox: GPKGBoundingBox!) -> Double
Parameters
viewWidth
view width
viewHeight
view height
boundingBox
WGS84 bounding box
Return Value
tolerance distance in meters
-
Get a WGS84 Bounding Box from a projected bounding box
Declaration
Objective-C
+ (GPKGBoundingBox *)wgs84BoundingBoxOfBoundingBox: (GPKGBoundingBox *)boundingBox inProjection:(PROJProjection *)projection;
Swift
class func wgs84BoundingBox(of boundingBox: GPKGBoundingBox!, in projection: PROJProjection!) -> GPKGBoundingBox!
Parameters
boundingBox
bounding box
projection
bounding box projection
Return Value
WGS84 bounding box
-
Get the WGS84 bounding box of the current map view screen. The max longitude will be larger than the min resulting in it to be larger than 180.0
Declaration
Objective-C
+ (GPKGBoundingBox *)boundingBoxOfMapView:(MKMapView *)mapView;
Swift
class func boundingBox(of mapView: MKMapView!) -> GPKGBoundingBox!
Parameters
mapView
map view
Return Value
current bounding box
-
Build a location bounding box using the click location, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with point: CGPoint, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
point
click point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a location bounding box using the click location, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithCGPoint:(CGPoint)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with point: CGPoint, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
point
click point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a location bounding box using the click location, zoom level, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithCGPoint:(CGPoint)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with point: CGPoint, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
point
click point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
+buildClickLocationBoundingBoxWithCGPoint:
andScale: andZoom: andPixelBounds: andMapView: andScreenPercentage: Build a location bounding box using the click location, scale factor, zoom level, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithCGPoint:(CGPoint)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with point: CGPoint, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
point
click point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a location bounding box using the click location, scale factor, zoom level, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithLocationCoordinate: (CLLocationCoordinate2D)location andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with location: CLLocationCoordinate2D, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
location
click location
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a location bounding box using the click location, scale factor, zoom level, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithLocationCoordinate: (CLLocationCoordinate2D)location andPixelBounds: (GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with location: CLLocationCoordinate2D, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
location
click location
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
+buildClickLocationBoundingBoxWithLocationCoordinate:
andZoom: andPixelBounds: andMapView: andScreenPercentage: Build a location bounding box using the click location, scale factor, zoom level, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithLocationCoordinate: (CLLocationCoordinate2D)location andZoom:(double)zoom andPixelBounds: (GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with location: CLLocationCoordinate2D, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
location
click location
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
+buildClickLocationBoundingBoxWithLocationCoordinate:
andScale: andZoom: andPixelBounds: andMapView: andScreenPercentage: Build a location bounding box using the click location, scale factor, zoom level, pixel bounds, map view, and screen percentage tolerance. The bounding box can be used to query for features that were clicked
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithLocationCoordinate: (CLLocationCoordinate2D)location andScale:(float)scale andZoom:(double)zoom andPixelBounds: (GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with location: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
location
click location
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the map point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *)buildClickBoundingBoxWithMapPoint:(GPKGMapPoint *)mapPoint andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with mapPoint: GPKGMapPoint!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
mapPoint
map point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the map point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithMapPoint:(GPKGMapPoint *)mapPoint andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with mapPoint: GPKGMapPoint!, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
mapPoint
map point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the map point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithMapPoint:(GPKGMapPoint *)mapPoint andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with mapPoint: GPKGMapPoint!, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
mapPoint
map point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the map point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithMapPoint:(GPKGMapPoint *)mapPoint andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with mapPoint: GPKGMapPoint!, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
mapPoint
map point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the mapkit map point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *)buildClickBoundingBoxWithMKMapPoint:(MKMapPoint)mapPoint andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with mapPoint: MKMapPoint, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
mapPoint
mapkit map point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *)buildClickBoundingBoxWithPoint:(SFPoint *)point andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: SFPoint!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithPoint:(SFPoint *)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: SFPoint!, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithPoint:(SFPoint *)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: SFPoint!, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithPoint:(SFPoint *)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: SFPoint!, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the location coordinate click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithLocationCoordinate:(CLLocationCoordinate2D)location andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with location: CLLocationCoordinate2D, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
location
location coordinate
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the location coordinate click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithLocationCoordinate:(CLLocationCoordinate2D)location andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with location: CLLocationCoordinate2D, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
location
location coordinate
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the location coordinate click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithLocationCoordinate:(CLLocationCoordinate2D)location andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with location: CLLocationCoordinate2D, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
location
location coordinate
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
+buildClickBoundingBoxWithLocationCoordinate:
andScale: andZoom: andPixelBounds: andMapView: andScreenPercentage: Build a bounding box using the location coordinate click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithLocationCoordinate:(CLLocationCoordinate2D)location andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with location: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
location
location coordinate
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the cg point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *)buildClickBoundingBoxWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: CGPoint, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
cg point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the cg point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithCGPoint:(CGPoint)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: CGPoint, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
cg point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the cg point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithCGPoint:(CGPoint)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: CGPoint, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
cg point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the cg point click location and map view that can be used to query for features
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithCGPoint:(CGPoint)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with point: CGPoint, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
point
cg point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the click location
Declaration
Objective-C
+ (GPKGBoundingBox *)buildClickBoundingBoxWithLocationBoundingBox: (GPKGLocationBoundingBox *)locationBoundingBox;
Swift
class func buildClickBoundingBox(with locationBoundingBox: GPKGLocationBoundingBox!) -> GPKGBoundingBox!
Parameters
locationBoundingBox
click bounding box
Return Value
bounding box
-
Build a location bounding box using the location coordinate click location and map view bounds
Declaration
Objective-C
+ (GPKGLocationBoundingBox *) buildClickLocationBoundingBoxWithLocationCoordinate: (CLLocationCoordinate2D)location andMapBounds: (GPKGBoundingBox *)mapBounds andScreenPercentage: (float)screenClickPercentage;
Swift
class func buildClickLocationBoundingBox(with location: CLLocationCoordinate2D, andMapBounds mapBounds: GPKGBoundingBox!, andScreenPercentage screenClickPercentage: Float) -> GPKGLocationBoundingBox!
Parameters
location
location coordinate
mapBounds
map bounds
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Build a bounding box using the location coordinate click location and map view bounds
Declaration
Objective-C
+ (GPKGBoundingBox *) buildClickBoundingBoxWithLocationCoordinate:(CLLocationCoordinate2D)location andMapBounds:(GPKGBoundingBox *)mapBounds andScreenPercentage:(float)screenClickPercentage;
Swift
class func buildClickBoundingBox(with location: CLLocationCoordinate2D, andMapBounds mapBounds: GPKGBoundingBox!, andScreenPercentage screenClickPercentage: Float) -> GPKGBoundingBox!
Parameters
location
location coordinate
mapBounds
map bounds
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
bounding box
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithPoint:(SFPoint *)point andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: SFPoint!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithPoint:(SFPoint *)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: SFPoint!, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithPoint:(SFPoint *)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: SFPoint!, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithPoint:(SFPoint *)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: SFPoint!, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *) toleranceWithLocationCoordinate:(CLLocationCoordinate2D)location andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with location: CLLocationCoordinate2D, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
location
click location
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *) toleranceWithLocationCoordinate:(CLLocationCoordinate2D)location andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with location: CLLocationCoordinate2D, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
location
click location
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *) toleranceWithLocationCoordinate:(CLLocationCoordinate2D)location andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with location: CLLocationCoordinate2D, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
location
click location
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *) toleranceWithLocationCoordinate:(CLLocationCoordinate2D)location andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with location: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
location
click location
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *) toleranceWithLocationCoordinate:(CLLocationCoordinate2D)location andBoundingBox:(GPKGLocationBoundingBox *)boundingBox andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with location: CLLocationCoordinate2D, andBoundingBox boundingBox: GPKGLocationBoundingBox!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
location
click location
boundingBox
click bounding box
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: CGPoint, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithCGPoint:(CGPoint)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: CGPoint, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithCGPoint:(CGPoint)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: CGPoint, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithCGPoint:(CGPoint)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: CGPoint, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (GPKGMapTolerance *)toleranceWithCGPoint:(CGPoint)point andBoundingBox: (GPKGLocationBoundingBox *)boundingBox andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func tolerance(with point: CGPoint, andBoundingBox boundingBox: GPKGLocationBoundingBox!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> GPKGMapTolerance!
Parameters
point
click point
boundingBox
click bounding box
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance meters and default screen pixels from the click bounding box
Declaration
Objective-C
+ (GPKGMapTolerance *) toleranceWithLocationCoordinate:(CLLocationCoordinate2D)location andBoundingBox:(GPKGLocationBoundingBox *)boundingBox;
Swift
class func tolerance(with location: CLLocationCoordinate2D, andBoundingBox boundingBox: GPKGLocationBoundingBox!) -> GPKGMapTolerance!
Parameters
location
click location
boundingBox
click bounding box
Return Value
tolerance distance in meters and screen pixels
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithPoint:(SFPoint *)point andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: SFPoint!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithPoint:(SFPoint *)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: SFPoint!, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithPoint:(SFPoint *)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: SFPoint!, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithPoint:(SFPoint *)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: SFPoint!, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithLocationCoordinate: (CLLocationCoordinate2D)location andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with location: CLLocationCoordinate2D, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
location
click location
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithLocationCoordinate: (CLLocationCoordinate2D)location andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with location: CLLocationCoordinate2D, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
location
click location
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithLocationCoordinate: (CLLocationCoordinate2D)location andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with location: CLLocationCoordinate2D, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
location
click location
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
+toleranceDistanceWithLocationCoordinate:
andScale: andZoom: andPixelBounds: andMapView: andScreenPercentage: Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithLocationCoordinate: (CLLocationCoordinate2D)location andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with location: CLLocationCoordinate2D, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
location
click location
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: CGPoint, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithCGPoint:(CGPoint)point andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: CGPoint, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithCGPoint:(CGPoint)point andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: CGPoint, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceDistanceWithCGPoint:(CGPoint)point andScale:(float)scale andZoom:(double)zoom andPixelBounds:(GPKGPixelBounds *)pixelBounds andMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceDistance(with point: CGPoint, andScale scale: Float, andZoom zoom: Double, andPixelBounds pixelBounds: GPKGPixelBounds!, andMapView mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
point
click point
scale
scale factor
zoom
current zoom level
pixelBounds
click pixel bounds
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click bounding box
Declaration
Objective-C
+ (double)toleranceDistanceWithCGPoint:(CGPoint)point andBoundingBox:(GPKGLocationBoundingBox *)boundingBox andMapView:(MKMapView *)mapView;
Swift
class func toleranceDistance(with point: CGPoint, andBoundingBox boundingBox: GPKGLocationBoundingBox!, andMapView mapView: MKMapView!) -> Double
Parameters
point
click point
boundingBox
click bounding box
Return Value
tolerance distance in meters
-
Get the allowable tolerance distance in meters from the click bounding box
Declaration
Objective-C
+ (double)toleranceDistanceWithLocationCoordinate: (CLLocationCoordinate2D)location andBoundingBox: (GPKGLocationBoundingBox *)boundingBox;
Swift
class func toleranceDistance(with location: CLLocationCoordinate2D, andBoundingBox boundingBox: GPKGLocationBoundingBox!) -> Double
Parameters
location
click location
boundingBox
click bounding box
Return Value
tolerance distance in meters
-
Get the allowable tolerance screen pixels from the click location on the map view and map with the screen percentage tolerance.
Declaration
Objective-C
+ (double)toleranceScreenWithMapView:(MKMapView *)mapView andScreenPercentage:(float)screenClickPercentage;
Swift
class func toleranceScreen(with mapView: MKMapView!, andScreenPercentage screenClickPercentage: Float) -> Double
Parameters
mapView
map view
screenClickPercentage
screen click percentage between 0.0 and 1.0 for how close a feature on the screen must be to be included in a click query
Return Value
tolerance screen pixels
-
If the polyline spans the -180 / 180 longitude, builds the complementary path. If points exist below 0, the path will have points above MKMapSizeWorld.width. If points exist above MKMapSizeWorld.width, the path will have points below 0. The returned path should be released.
Declaration
Objective-C
+ (CGPathRef)complementaryWorldPathOfPolyline:(MKPolyline *)polyline;
Swift
class func complementaryWorldPath(of polyline: MKPolyline!) -> Unmanaged<CGPath>!
Parameters
polyline
polyline
Return Value
complementary path
-
If the polygon spans the -180 / 180 longitude, builds the complementary path. If points exist below 0, the path will have points above MKMapSizeWorld.width. If points exist above MKMapSizeWorld.width, the path will have points below 0. The returned path should be released.
Declaration
Objective-C
+ (CGPathRef)complementaryWorldPathOfPolygon:(MKPolygon *)polygon;
Swift
class func complementaryWorldPath(of polygon: MKPolygon!) -> Unmanaged<CGPath>!
Parameters
polygon
polygon
Return Value
complementary path
-
If the multi point spans the -180 / 180 longitude, builds the complementary path. If points exist below 0, the path will have points above MKMapSizeWorld.width. If points exist above MKMapSizeWorld.width, the path will have points below 0. The returned path should be released.
Declaration
Objective-C
+ (CGPathRef)complementaryWorldPathOfMultiPoint:(MKMultiPoint *)multiPoint;
Swift
class func complementaryWorldPath(of multiPoint: MKMultiPoint!) -> Unmanaged<CGPath>!
Parameters
multiPoint
multi point
Return Value
complementary path
-
If the points span the -180 / 180 longitude, builds the complementary path. If points exist below 0, the path will have points above MKMapSizeWorld.width. If points exist above MKMapSizeWorld.width, the path will have points below 0. The returned path should be released.
Declaration
Objective-C
+ (CGPathRef)complementaryWorldPathOfPoints:(MKMapPoint *)points andPointCount:(NSUInteger)pointCount;
Swift
class func complementaryWorldPath(ofPoints points: UnsafeMutablePointer<MKMapPoint>!, andPointCount pointCount: UInt) -> Unmanaged<CGPath>!
Parameters
points
points
pointCount
point count
Return Value
complementary path
-
Is the location on or near the shape
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location onShape:(GPKGMapShape *)mapShape withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, on mapShape: GPKGMapShape!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
mapShape
map shape
tolerance
distance and screen tolerance
Return Value
true if location is on shape
-
Is the location near the map point
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location nearMapPoint:(GPKGMapPoint *)mapPoint withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, nearMapPoint mapPoint: GPKGMapPoint!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
mapPoint
map point
tolerance
distance and screen tolerance
Return Value
true if location is near map point
-
Is the location near the other location
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location1 nearLocation:(CLLocationCoordinate2D)location2 withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location1: CLLocationCoordinate2D, nearLocation location2: CLLocationCoordinate2D, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location1
location point 1
location2
location point 2
tolerance
distance and screen tolerance
Return Value
true if location 1 is near location 2
-
Is the location near the multi point
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location nearMultiPoint:(GPKGMultiPoint *)multiPoint withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, nearMultiPoint multiPoint: GPKGMultiPoint!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
multiPoint
multi point
tolerance
distance and screen tolerance
Return Value
true if location is near multi point
-
Is the location on the polyline
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location onPolyline:(MKPolyline *)polyline withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, on polyline: MKPolyline!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
polyline
polyline
tolerance
distance and screen tolerance
Return Value
true if location is on polyline
-
Is the location on the multi polyline
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location onMultiPolyline:(GPKGMultiPolyline *)multiPolyline withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, on multiPolyline: GPKGMultiPolyline!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
multiPolyline
multi polyline
tolerance
distance and screen tolerance
Return Value
true if location is on multi polyline
-
Is the location on the polygon
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location onPolygon:(MKPolygon *)polygon withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, on polygon: MKPolygon!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
polygon
polygon
tolerance
distance and screen tolerance
Return Value
true if location is on the polygon
-
Is the location on the polygon
Declaration
Objective-C
+ (BOOL)isLocation:(CLLocationCoordinate2D)location onMultiPolygon:(GPKGMultiPolygon *)multiPolygon withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func isLocation(_ location: CLLocationCoordinate2D, on multiPolygon: GPKGMultiPolygon!, with tolerance: GPKGMapTolerance!) -> Bool
Parameters
location
location point
multiPolygon
multi polygon
tolerance
distance and screen tolerance
Return Value
true if location is on the multi polygon
-
Is the location on or near the shape, returning the distance when on the shape
Declaration
Objective-C
+ (NSDecimalNumber *)distanceIfLocation:(CLLocationCoordinate2D)location onShape:(GPKGMapShape *)mapShape withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func distanceIfLocation(_ location: CLLocationCoordinate2D, on mapShape: GPKGMapShape!, with tolerance: GPKGMapTolerance!) -> NSDecimalNumber!
Parameters
location
location point
mapShape
map shape
tolerance
distance and screen tolerance
Return Value
distance when on shape, -1.0 when distance not calculated, nil when not on shape
-
Is the location near the map point, returning the distance when on point
Declaration
Objective-C
+ (NSDecimalNumber *)distanceIfLocation:(CLLocationCoordinate2D)location nearMapPoint:(GPKGMapPoint *)mapPoint withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func distanceIfLocation(_ location: CLLocationCoordinate2D, nearMapPoint mapPoint: GPKGMapPoint!, with tolerance: GPKGMapTolerance!) -> NSDecimalNumber!
Parameters
location
location point
mapPoint
map point
tolerance
distance and screen tolerance
Return Value
distance when on point, nil when not
-
Is the location near the other location, returning the distance when on location
Declaration
Objective-C
+ (NSDecimalNumber *)distanceIfLocation:(CLLocationCoordinate2D)location1 nearLocation:(CLLocationCoordinate2D)location2 withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func distanceIfLocation(_ location1: CLLocationCoordinate2D, nearLocation location2: CLLocationCoordinate2D, with tolerance: GPKGMapTolerance!) -> NSDecimalNumber!
Parameters
location1
location point 1
location2
location point 2
tolerance
distance and screen tolerance
Return Value
distance when on location, nil when not
-
Is the location near the multi point, returning the nearest distance when on multi point
Declaration
Objective-C
+ (NSDecimalNumber *)distanceIfLocation:(CLLocationCoordinate2D)location nearMultiPoint:(GPKGMultiPoint *)multiPoint withTolerance:(GPKGMapTolerance *)tolerance;
Swift
class func distanceIfLocation(_ location: CLLocationCoordinate2D, nearMultiPoint multiPoint: GPKGMultiPoint!, with tolerance: GPKGMapTolerance!) -> NSDecimalNumber!
Parameters
location
location point
multiPoint
multi point
tolerance
distance and screen tolerance
Return Value
distance when on multi point, nil when not