getColor method
Gets the feature color.
Implementation
@override
Color? getColor(MapDataSource dataSource, MapFeature feature) {
if (_colors != null) {
dynamic value = feature.getValue(key);
if (value != null && _colors!.containsKey(value)) {
return _colors![value]!;
}
}
return super.getColor(dataSource, feature);
}