encoding property
The encoding used by this source. Mapbox Terrain RGB is used by default Default value: "mapbox".
Implementation
Future<Encoding?> get encoding async {
return _style?.getStyleSourceProperty(id, "encoding").then((value) {
if (value.value != null) {
return Encoding.values.firstWhere((e) => e
.toString()
.split('.')
.last
.toLowerCase()
.contains(value.value as String));
} else {
return null;
}
});
}