diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-03-05 14:12:37 -0800 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2017-03-10 11:08:32 -0800 |
commit | a7fd788b5d5d7734666758320235f14be8187179 (patch) | |
tree | 5799cc0159590c88e02481b60eac9db9202956d6 /platform/darwin/src/MGLShapeSource.h | |
parent | 517659b1b44a4e31e1035d4da9c444380454ad58 (diff) | |
download | qtlocation-mapboxgl-a7fd788b5d5d7734666758320235f14be8187179.tar.gz |
[macos, ios] query source features
Diffstat (limited to 'platform/darwin/src/MGLShapeSource.h')
-rw-r--r-- | platform/darwin/src/MGLShapeSource.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLShapeSource.h b/platform/darwin/src/MGLShapeSource.h index 24cdf82bea..07045490bd 100644 --- a/platform/darwin/src/MGLShapeSource.h +++ b/platform/darwin/src/MGLShapeSource.h @@ -210,6 +210,22 @@ MGL_EXPORT */ @property (nonatomic, copy, nullable) NSURL *URL; +/** + Returns an array of map features for this source, filtered by the given predicate. + + Each object in the returned array represents a feature for the current style + and provides access to attributes specified by the source + + Features come from tiled GeoJSON data that is converted to tiles internally, + so feature geometries are clipped at tile boundaries and features + may appear duplicated across tiles. + + @param predicate A predicate to filter the returned features. + @return An array of objects conforming to the `MGLFeature` protocol that + represent features in the sources used by the current style. + */ +- (NS_ARRAY_OF(id <MGLFeature>) *)featuresMatchingPredicate:(nullable NSPredicate *)predicate; + @end NS_ASSUME_NONNULL_END |