GPKGFeatureOverlayQuery
Objective-C
@interface GPKGFeatureOverlayQuery : NSObject
Swift
class GPKGFeatureOverlayQuery : NSObject
Used to query the features represented by tiles, either being drawn from or linked to the features
-
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
Declaration
Objective-C
@property (nonatomic) float screenClickPercentage;
Swift
var screenClickPercentage: Float { get set }
-
Flag indicating if building info messages for tiles with features over the max is enabled
Declaration
Objective-C
@property (nonatomic) BOOL maxFeaturesInfo;
Swift
var maxFeaturesInfo: Bool { get set }
-
Flag indicating if building info messages for clicked features is enabled
Declaration
Objective-C
@property (nonatomic) BOOL featuresInfo;
Swift
var featuresInfo: Bool { get set }
-
Pixel bounds
Declaration
Objective-C
@property (nonatomic, strong) GPKGPixelBounds *stylePixelBounds;
Swift
var stylePixelBounds: GPKGPixelBounds! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)initWithFeatureOverlay:(GPKGFeatureOverlay *)featureOverlay;
Swift
init!(featureOverlay: GPKGFeatureOverlay!)
Parameters
featureOverlay
feature overlay
Return Value
new feature overlay query
-
Initialize
Declaration
Objective-C
- (instancetype)initWithBoundedOverlay:(GPKGBoundedOverlay *)boundedOverlay andFeatureTiles:(GPKGFeatureTiles *)featureTiles;
Swift
init!(boundedOverlay: GPKGBoundedOverlay!, andFeatureTiles featureTiles: GPKGFeatureTiles!)
Parameters
boundedOverlay
bounded overlay
featureTiles
feature tiles
Return Value
new feature overlay query
-
Close the feature tiles connection
Declaration
Objective-C
- (void)close;
Swift
func close()
-
Get the bounded overlay
Declaration
Objective-C
- (GPKGBoundedOverlay *)boundedOverlay;
Swift
func boundedOverlay() -> GPKGBoundedOverlay!
Return Value
bounded overlay
-
Get the feature tiles
Declaration
Objective-C
- (GPKGFeatureTiles *)featureTiles;
Swift
func featureTiles() -> GPKGFeatureTiles!
Return Value
feature tiles
-
Get the feature info builder
Declaration
Objective-C
- (GPKGFeatureInfoBuilder *)featureInfoBuilder;
Swift
func featureInfoBuilder() -> GPKGFeatureInfoBuilder!
Return Value
feature info builder
-
Calculate and set the style pixel bounds to enable queries on visible feature styles
Declaration
Objective-C
- (void)calculateStylePixelBounds;
Swift
func calculateStylePixelBounds()
-
Determine if the the feature overlay is on for the current zoom level of the map view at the location coordinate
Declaration
Objective-C
- (BOOL)onAtCurrentZoomWithMapView:(MKMapView *)mapView andLocationCoordinate:(CLLocationCoordinate2D)locationCoordinate;
Swift
func onAtCurrentZoom(with mapView: MKMapView!, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D) -> Bool
Parameters
mapView
map view
locationCoordinate
location coordinate
Return Value
true if on
-
Determine if the the feature overlay is on for the provided zoom level at the location coordinate
Declaration
Objective-C
- (BOOL)onAtZoom:(double)zoom andLocationCoordinate:(CLLocationCoordinate2D)locationCoordinate;
Swift
func on(atZoom zoom: Double, andLocationCoordinate locationCoordinate: CLLocationCoordinate2D) -> Bool
Parameters
zoom
zoom level
locationCoordinate
location coordinate
Return Value
true if on
-
Get the count of features in the tile at the map point and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithMapPoint:(GPKGMapPoint *)mapPoint andDoubleZoom:(double)zoom;
Swift
func tileFeatureCount(with mapPoint: GPKGMapPoint!, andDoubleZoom zoom: Double) -> Int32
Parameters
mapPoint
map point
zoom
double zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the map point and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithMapPoint:(GPKGMapPoint *)mapPoint andZoom:(int)zoom;
Swift
func tileFeatureCount(with mapPoint: GPKGMapPoint!, andZoom zoom: Int32) -> Int32
Parameters
mapPoint
map point
zoom
zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the mapkit map point and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithMKMapPoint:(MKMapPoint)mapPoint andDoubleZoom:(double)zoom;
Swift
func tileFeatureCount(with mapPoint: MKMapPoint, andDoubleZoom zoom: Double) -> Int32
Parameters
mapPoint
map point
zoom
double zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the mapkit map point and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithMKMapPoint:(MKMapPoint)mapPoint andZoom:(int)zoom;
Swift
func tileFeatureCount(with mapPoint: MKMapPoint, andZoom zoom: Int32) -> Int32
Parameters
mapPoint
map point
zoom
zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the location coordinate and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithLocationCoordinate:(CLLocationCoordinate2D)location andDoubleZoom:(double)zoom;
Swift
func tileFeatureCount(with location: CLLocationCoordinate2D, andDoubleZoom zoom: Double) -> Int32
Parameters
location
location coordinate
zoom
double zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the location coordinate and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithLocationCoordinate:(CLLocationCoordinate2D)location andZoom:(int)zoom;
Swift
func tileFeatureCount(with location: CLLocationCoordinate2D, andZoom zoom: Int32) -> Int32
Parameters
location
location coordinate
zoom
zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the point and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithPoint:(SFPoint *)point andDoubleZoom:(double)zoom;
Swift
func tileFeatureCount(with point: SFPoint!, andDoubleZoom zoom: Double) -> Int32
Parameters
point
point
zoom
double zoom value
Return Value
tile feature count
-
Get the count of features in the tile at the point and zoom level
Declaration
Objective-C
- (int)tileFeatureCountWithPoint:(SFPoint *)point andZoom:(int)zoom;
Swift
func tileFeatureCount(with point: SFPoint!, andZoom zoom: Int32) -> Int32
Parameters
point
point
zoom
zoom value
Return Value
tile feature count
-
Get the WGS84 bounds of the tile at the map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithMapPoint:(GPKGMapPoint *)mapPoint andDoubleZoom:(double)zoom;
Swift
class func tileBounds(with mapPoint: GPKGMapPoint!, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithMapPoint:(GPKGMapPoint *)mapPoint andZoom:(int)zoom;
Swift
class func tileBounds(with mapPoint: GPKGMapPoint!, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the mapkit map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithMKMapPoint:(MKMapPoint)mapPoint andDoubleZoom:(double)zoom;
Swift
class func tileBounds(with mapPoint: MKMapPoint, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the mapkit map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithMKMapPoint:(MKMapPoint)mapPoint andZoom:(int)zoom;
Swift
class func tileBounds(with mapPoint: MKMapPoint, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the location coordinate and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithLocationCoordinate: (CLLocationCoordinate2D)location andDoubleZoom:(double)zoom;
Swift
class func tileBounds(with location: CLLocationCoordinate2D, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
location
location coordinate
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the location coordinate and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithLocationCoordinate: (CLLocationCoordinate2D)location andZoom:(int)zoom;
Swift
class func tileBounds(with location: CLLocationCoordinate2D, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
location
location coordinate
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithPoint:(SFPoint *)point andDoubleZoom:(double)zoom;
Swift
class func tileBounds(with point: SFPoint!, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
point
point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsWithPoint:(SFPoint *)point andZoom:(int)zoom;
Swift
class func tileBounds(with point: SFPoint!, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
point
point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withMapPoint:(GPKGMapPoint *)mapPoint andDoubleZoom:(double)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with mapPoint: GPKGMapPoint!, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withMapPoint:(GPKGMapPoint *)mapPoint andZoom:(int)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with mapPoint: GPKGMapPoint!, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the mapkit map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withMKMapPoint:(MKMapPoint)mapPoint andDoubleZoom:(double)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with mapPoint: MKMapPoint, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the mapkit map point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withMKMapPoint:(MKMapPoint)mapPoint andZoom:(int)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with mapPoint: MKMapPoint, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
mapPoint
map point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the location coordinate and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withLocationCoordinate:(CLLocationCoordinate2D)location andDoubleZoom:(double)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with location: CLLocationCoordinate2D, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
location
location coordinate
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the location coordinate and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withLocationCoordinate:(CLLocationCoordinate2D)location andZoom:(int)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with location: CLLocationCoordinate2D, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
location
location coordinate
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withPoint:(SFPoint *)point andDoubleZoom:(double)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with point: SFPoint!, andDoubleZoom zoom: Double) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
point
point
zoom
zoom level
Return Value
WGS84 bounding box
-
Get the WGS84 bounds of the tile at the point and zoom level
Declaration
Objective-C
+ (GPKGBoundingBox *)tileBoundsInProjection:(PROJProjection *)projection withPoint:(SFPoint *)point andZoom:(int)zoom;
Swift
class func tileBounds(in projection: PROJProjection!, with point: SFPoint!, andZoom zoom: Int32) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
point
point
zoom
zoom level
Return Value
WGS84 bounding box
-
Determine if the provided count of features in the tile is more than the configured max features per tile
Declaration
Objective-C
- (BOOL)moreThanMaxFeatures:(int)tileFeaturesCount;
Swift
func moreThanMaxFeatures(_ tileFeaturesCount: Int32) -> Bool
Parameters
tileFeaturesCount
tile feature count
Return Value
true if more than the max features, false if less than or no configured max features
-
Query for features in the WGS84 projected bounding box
Declaration
Objective-C
- (GPKGFeatureIndexResults *)queryFeaturesWithBoundingBox: (GPKGBoundingBox *)boundingBox;
Swift
func queryFeatures(with boundingBox: GPKGBoundingBox!) -> GPKGFeatureIndexResults!
Parameters
boundingBox
query bounding box in WGS84 projection
Return Value
feature index results, must be closed
-
Query for features in the WGS84 projected bounding box
Declaration
Objective-C
- (GPKGFeatureIndexResults *) queryFeaturesWithColumns:(NSArray<NSString *> *)columns andBoundingBox:(GPKGBoundingBox *)boundingBox;
Swift
func queryFeatures(withColumns columns: [String]!, andBoundingBox boundingBox: GPKGBoundingBox!) -> GPKGFeatureIndexResults!
Parameters
columns
columns
boundingBox
query bounding box in WGS84 projection
Return Value
feature index results, must be closed
-
Query for features in the bounding box
Declaration
Objective-C
- (GPKGFeatureIndexResults *) queryFeaturesWithBoundingBox:(GPKGBoundingBox *)boundingBox inProjection:(PROJProjection *)projection;
Swift
func queryFeatures(with boundingBox: GPKGBoundingBox!, in projection: PROJProjection!) -> GPKGFeatureIndexResults!
Parameters
boundingBox
query bounding box
projection
bounding box projection
Return Value
feature index results, must be closed
-
Query for features in the bounding box
Declaration
Objective-C
- (GPKGFeatureIndexResults *) queryFeaturesWithColumns:(NSArray<NSString *> *)columns andBoundingBox:(GPKGBoundingBox *)boundingBox inProjection:(PROJProjection *)projection;
Swift
func queryFeatures(withColumns columns: [String]!, andBoundingBox boundingBox: GPKGBoundingBox!, in projection: PROJProjection!) -> GPKGFeatureIndexResults!
Parameters
columns
columns
boundingBox
query bounding box
projection
bounding box projection
Return Value
feature index results, must be closed
-
Check if the features are indexed
Declaration
Objective-C
- (BOOL)isIndexed;
Swift
func isIndexed() -> Bool
Return Value
true if indexed
-
Get a max features information message
Declaration
Objective-C
- (NSString *)buildMaxFeaturesInfoMessageWithTileFeaturesCount: (int)tileFeaturesCount;
Swift
func buildMaxFeaturesInfoMessage(withTileFeaturesCount tileFeaturesCount: Int32) -> String!
Parameters
tileFeaturesCount
tile features count
Return Value
max features message
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *)buildMapClickMessageWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView;
Swift
func buildMapClickMessage(with point: CGPoint, andMapView mapView: MKMapView!) -> String!
Parameters
point
cg point
mapView
map view
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *)buildMapClickMessageWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andMapView:(MKMapView *)mapView;
Swift
func buildMapClickMessage(with locationCoordinate: CLLocationCoordinate2D, andMapView mapView: MKMapView!) -> String!
Parameters
locationCoordinate
location coordinate
mapView
map view
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *)buildMapClickMessageWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView andProjection:(PROJProjection *)projection;
Swift
func buildMapClickMessage(with point: CGPoint, andMapView mapView: MKMapView!, andProjection projection: PROJProjection!) -> String!
Parameters
point
cg point
mapView
map view
projection
desired geometry projection
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *)buildMapClickMessageWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andMapView:(MKMapView *)mapView andProjection: (PROJProjection *)projection;
Swift
func buildMapClickMessage(with locationCoordinate: CLLocationCoordinate2D, andMapView mapView: MKMapView!, andProjection projection: PROJProjection!) -> String!
Parameters
locationCoordinate
location coordinate
mapView
map view
projection
desired geometry projection
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *)buildMapClickMessageWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds: (GPKGBoundingBox *)mapBounds;
Swift
func buildMapClickMessage(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!) -> String!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *) buildMapClickMessageWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds andProjection:(PROJProjection *)projection;
Swift
func buildMapClickMessage(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!, andProjection projection: PROJProjection!) -> String!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
projection
desired geometry projection
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *) buildMapClickMessageWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds andTolerance:(GPKGMapTolerance *)tolerance;
Swift
func buildMapClickMessage(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!, andTolerance tolerance: GPKGMapTolerance!) -> String!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
tolerance
distance and screen tolerance
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build a info message
Declaration
Objective-C
- (NSString *) buildMapClickMessageWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds andTolerance:(GPKGMapTolerance *)tolerance andProjection:(PROJProjection *)projection;
Swift
func buildMapClickMessage(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!, andTolerance tolerance: GPKGMapTolerance!, andProjection projection: PROJProjection!) -> String!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
tolerance
distance and screen tolerance
projection
desired geometry projection
Return Value
information message on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *)buildMapClickTableDataWithCGPoint:(CGPoint)point andMapView: (MKMapView *)mapView;
Swift
func buildMapClickTableData(with point: CGPoint, andMapView mapView: MKMapView!) -> GPKGFeatureTableData!
Parameters
point
cg point
mapView
map view
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *) buildMapClickTableDataWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andMapView:(MKMapView *)mapView;
Swift
func buildMapClickTableData(with locationCoordinate: CLLocationCoordinate2D, andMapView mapView: MKMapView!) -> GPKGFeatureTableData!
Parameters
locationCoordinate
location coordinate
mapView
map view
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *)buildMapClickTableDataWithCGPoint:(CGPoint)point andMapView:(MKMapView *)mapView andProjection: (PROJProjection *)projection;
Swift
func buildMapClickTableData(with point: CGPoint, andMapView mapView: MKMapView!, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
point
cg point
mapView
map view
projection
desired geometry projection
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *) buildMapClickTableDataWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andMapView:(MKMapView *)mapView andProjection:(PROJProjection *)projection;
Swift
func buildMapClickTableData(with locationCoordinate: CLLocationCoordinate2D, andMapView mapView: MKMapView!, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
locationCoordinate
location coordinate
mapView
map view
projection
desired geometry projection
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *) buildMapClickTableDataWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds;
Swift
func buildMapClickTableData(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!) -> GPKGFeatureTableData!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *) buildMapClickTableDataWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds andProjection:(PROJProjection *)projection;
Swift
func buildMapClickTableData(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
projection
desired geometry projection
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *) buildMapClickTableDataWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds andTolerance:(GPKGMapTolerance *)tolerance;
Swift
func buildMapClickTableData(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!, andTolerance tolerance: GPKGMapTolerance!) -> GPKGFeatureTableData!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
tolerance
distance and screen tolerance
Return Value
table data on what was clicked, or nil
-
Perform a query based upon the map click location and build feature table data
Declaration
Objective-C
- (GPKGFeatureTableData *) buildMapClickTableDataWithLocationCoordinate: (CLLocationCoordinate2D)locationCoordinate andZoom:(double)zoom andMapBounds:(GPKGBoundingBox *)mapBounds andTolerance:(GPKGMapTolerance *)tolerance andProjection:(PROJProjection *)projection;
Swift
func buildMapClickTableData(with locationCoordinate: CLLocationCoordinate2D, andZoom zoom: Double, andMapBounds mapBounds: GPKGBoundingBox!, andTolerance tolerance: GPKGMapTolerance!, andProjection projection: PROJProjection!) -> GPKGFeatureTableData!
Parameters
locationCoordinate
location coordinate
zoom
current zoom level
mapBounds
map view bounds
tolerance
distance and screen tolerance
projection
desired geometry projection
Return Value
table data on what was clicked, or nil