coordinates property
Corners of image specified in longitude, latitude pairs. Note: When using globe projection, the image will be centered at the North or South Pole in the respective hemisphere if the average latitude value exceeds 85 degrees or falls below -85 degrees.
Implementation
Future<List<List<double?>?>?> get coordinates async {
final localStyle = style;
if (localStyle == null) return null;
final raw = (await localStyle.getStyleSourceProperty(
id,
"coordinates",
)).value;
if (raw == null) return null;
return List<List<double>>.from(
(raw as List<dynamic>).map((e) => List<double>.from(e as List<dynamic>)),
);
}