From 8ca8e2c5093db331d592b8bd4abe695cde2e77ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sun, 10 Jul 2016 15:03:42 -0700 Subject: [PATCH] [ios, macos] Updated MGLFeature ID documentation Since #5514, feature IDs may be integers, unsigned integers, floating-point numbers, or strings, not just unsigned integers. --- platform/darwin/src/MGLFeature.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/platform/darwin/src/MGLFeature.h b/platform/darwin/src/MGLFeature.h index 69cff6b05..1ab587ede 100644 --- a/platform/darwin/src/MGLFeature.h +++ b/platform/darwin/src/MGLFeature.h @@ -29,13 +29,23 @@ NS_ASSUME_NONNULL_BEGIN An object that uniquely identifies the feature in its containing tile source. - The value of this property is currently always an `NSNumber` object but may in - the future be an instance of another class, such as `NSString`. - The identifier corresponds to the feature identifier (`id`) in the tile source. If the source does not specify the feature’s - identifier, the value of this property is `nil`. + identifier, the value of this property is `nil`. If specified, the identifier + may be an integer, floating-point number, or string. These data types are + mapped to instances of the following Foundation classes: + + + + + + + + + + +
In the tile sourceThis property
Integer NSNumber (use the unsignedLongLongValue or longLongValue property)
Floating-point number NSNumber (use the doubleValue property)
String NSString
For details about the identifiers used in most Mapbox-provided styles, consult the