data property

Future<String?> get data

A URL to a GeoJSON file, or inline GeoJSON.

Implementation

Future<String?> get data async {
  final localStyle = style;
  if (localStyle == null) return null;
  final raw = (await localStyle.getStyleSourceProperty(id, "data")).value;
  if (raw == null) return null;
  return raw as String;
}