tiles property

Future<List<String?>?> get tiles

An array of one or more tile source URLs, as in the TileJSON spec. Required if url is not provided.

Implementation

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