url property

Future<String?> get url

A URL to a TileJSON resource. Supported protocols are http:, https:, and mapbox://<Tileset ID>. Required if tiles is not provided.

Implementation

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