identifier property

ObjCObjectBase? get identifier

An object that uniquely identifies the feature in its containing content source.

You can configure an MLNVectorStyleLayer object to include or exclude a specific feature in an MLNShapeSource or MLNVectorTileSource. In the MLNVectorStyleLayer/predicate property, compare the special $id attribute to the feature’s identifier.

In vector tiles loaded by MLNVectorTileSource objects, the identifier corresponds to the feature identifier (id). If the source does not specify the feature’s 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 source This property
Integer NSNumber (use the unsignedLongLongValue or longLongValue
property)
String NSString

The identifier should be set before adding the feature to an MLNShapeSource object; setting it afterwards has no effect on the map’s contents. While it is possible to change this value on feature instances obtained from MLNMapView/visibleFeaturesAtPoint: and related methods, doing so likewise has no effect on the map’s contents.

Implementation

objc.ObjCObjectBase? get identifier {
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_identifier);
  return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true);
}
set identifier (ObjCObjectBase? value)

An object that uniquely identifies the feature in its containing content source.

You can configure an MLNVectorStyleLayer object to include or exclude a specific feature in an MLNShapeSource or MLNVectorTileSource. In the MLNVectorStyleLayer/predicate property, compare the special $id attribute to the feature’s identifier.

In vector tiles loaded by MLNVectorTileSource objects, the identifier corresponds to the feature identifier (id). If the source does not specify the feature’s 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 source This property
Integer NSNumber (use the unsignedLongLongValue or longLongValue
property)
String NSString

The identifier should be set before adding the feature to an MLNShapeSource object; setting it afterwards has no effect on the map’s contents. While it is possible to change this value on feature instances obtained from MLNMapView/visibleFeaturesAtPoint: and related methods, doing so likewise has no effect on the map’s contents.

Implementation

set identifier(objc.ObjCObjectBase? value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setIdentifier_, value?.ref.pointer ?? ffi.nullptr);

}