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!) -> DoubleParameters
mapViewmap 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!) -> Int32Parameters
mapViewmap 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!) -> DoubleParameters
mapViewmap 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!) -> DoubleParameters
viewWidthview width
viewHeightview height
boundingBoxbounding box
projectionbounding 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!) -> DoubleParameters
viewWidthview width
viewHeightview height
boundingBoxWGS84 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
boundingBoxbounding box
projectionbounding 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
mapViewmap 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
pointclick point
mapViewmap view
screenClickPercentagescreen 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
pointclick point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
mapViewmap view
screenClickPercentagescreen 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
locationclick location
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
mapPointmap point
mapViewmap view
screenClickPercentagescreen 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
mapPointmap point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
mapPointmap point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
mapPointmap point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
mapPointmapkit map point
mapViewmap view
screenClickPercentagescreen 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
pointpoint
mapViewmap view
screenClickPercentagescreen 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
pointpoint
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointpoint
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointpoint
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationlocation coordinate
mapViewmap view
screenClickPercentagescreen 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
locationlocation coordinate
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationlocation coordinate
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationlocation coordinate
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointcg point
mapViewmap view
screenClickPercentagescreen 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
pointcg point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointcg point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointcg point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationBoundingBoxclick 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
locationlocation coordinate
mapBoundsmap bounds
screenClickPercentagescreen 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
locationlocation coordinate
mapBoundsmap bounds
screenClickPercentagescreen 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
pointclick point
mapViewmap view
screenClickPercentagescreen 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
pointclick point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
mapViewmap view
screenClickPercentagescreen 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
locationclick location
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
locationclick location
boundingBoxclick bounding box
mapViewmap view
screenClickPercentagescreen 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
pointclick point
mapViewmap view
screenClickPercentagescreen 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
pointclick point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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
pointclick point
boundingBoxclick bounding box
mapViewmap view
screenClickPercentagescreen 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
locationclick location
boundingBoxclick 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) -> DoubleParameters
pointclick point
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
locationclick location
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
locationclick location
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
locationclick location
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
locationclick location
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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) -> DoubleParameters
pointclick point
scalescale factor
zoomcurrent zoom level
pixelBoundsclick pixel bounds
mapViewmap view
screenClickPercentagescreen 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!) -> DoubleParameters
pointclick point
boundingBoxclick 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!) -> DoubleParameters
locationclick location
boundingBoxclick 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) -> DoubleParameters
mapViewmap view
screenClickPercentagescreen 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
polylinepolyline
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
polygonpolygon
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
multiPointmulti 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
pointspoints
pointCountpoint 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!) -> BoolParameters
locationlocation point
mapShapemap shape
tolerancedistance 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!) -> BoolParameters
locationlocation point
mapPointmap point
tolerancedistance 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!) -> BoolParameters
location1location point 1
location2location point 2
tolerancedistance 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!) -> BoolParameters
locationlocation point
multiPointmulti point
tolerancedistance 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!) -> BoolParameters
locationlocation point
polylinepolyline
tolerancedistance 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!) -> BoolParameters
locationlocation point
multiPolylinemulti polyline
tolerancedistance 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!) -> BoolParameters
locationlocation point
polygonpolygon
tolerancedistance 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!) -> BoolParameters
locationlocation point
multiPolygonmulti polygon
tolerancedistance 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
locationlocation point
mapShapemap shape
tolerancedistance 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
locationlocation point
mapPointmap point
tolerancedistance 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
location1location point 1
location2location point 2
tolerancedistance 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
locationlocation point
multiPointmulti point
tolerancedistance and screen tolerance
Return Value
distance when on multi point, nil when not
 
View on GitHub
        GPKGMapUtils Class Reference