generateId property
Whether to generate ids for the geojson features. When enabled, the feature.id property will be auto assigned based on its index in the features array, over-writing any previous values.
Implementation
Future<bool?> get generateId async {
return _style?.getStyleSourceProperty(id, "generateId").then((value) {
if (value.value != '<null>') {
if (Platform.isIOS) {
return value.value.toLowerCase() == '1';
} else {
return value.value.toLowerCase() == 'true';
}
} else {
return null;
}
});
}