id property

String id

The unique identifying string for the layer, as specified in a map or scene.

The id is used by other parts of this API to refer to a specific Layer, such as in a set of FeatureFenceParameters or a FacilityLayerDefinition. If not supplied, all layers will be assigned a unique id when created.

It is not recommended to change this property when the layer is obtained from a map or scene. If changed, ensure that the string is unique, for example based on a generated GUID.

Implementation

String get id {
  final stringHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Layer_getId(_handle, errorHandler);
  });
  return stringHandle.toDartString();
}
void id=(String value)

Implementation

set id(String value) {
  final coreValue = _CString(value);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_Layer_setId(_handle, coreValue.bytes, errorHandler);
  });
}