scheme property

Future<Scheme?> get scheme

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

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 as String));
    } else {
      return null;
    }
  });
}