diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-12-07 14:06:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 14:06:02 -0800 |
commit | 01ff94a6ebb5788e9c39abaa260fcd06bcbd41d6 (patch) | |
tree | 79386ca238183f3333c5213df4e6f2ddd8233867 /platform | |
parent | 497953c34e401fc268b59fd80c34855838873596 (diff) | |
download | qtlocation-mapboxgl-01ff94a6ebb5788e9c39abaa260fcd06bcbd41d6.tar.gz |
[ios, macos] Warn about special characters in predicates (#7317)
Diffstat (limited to 'platform')
-rw-r--r-- | platform/darwin/src/MGLVectorStyleLayer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLVectorStyleLayer.h b/platform/darwin/src/MGLVectorStyleLayer.h index e2a755083f..e0980af44d 100644 --- a/platform/darwin/src/MGLVectorStyleLayer.h +++ b/platform/darwin/src/MGLVectorStyleLayer.h @@ -122,6 +122,12 @@ NS_ASSUME_NONNULL_BEGIN value specified in the predicate. Also, operator modifiers `c`, `d`, and the combined `cd` for case and diacritic insensitivity are unsupported for comparison and aggregate operators that are used in the predicate. + + It is possible to create expressions that contain special characters in the + predicate format syntax. This includes the `$` in the `$id` and `$type` special + style attributes and also `hyphen-minus` and `tag:subtag`. However, you must use + `%K` in the format string to represent these variables: + `@"%K == 'LineString'", @"$type"`. */ @property (nonatomic, nullable) NSPredicate *predicate; |