scheme property

Future<Scheme?> get scheme

Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.

Implementation

Future<Scheme?> get scheme async {
  return _style?.getStyleSourceProperty(id, "scheme").then((value) {
    if (value.value != '<null>') {
      return Scheme.values.firstWhere((e) =>
          e.toString().split('.').last.toLowerCase().contains(value.value));
    } else {
      return null;
    }
  });
}