polygons property

Iterable<TilePolygon> polygons

Implementation

Iterable<TilePolygon> get polygons {
  if (type != TileFeatureType.polygon) {
    throw StateError('Feature does not have polygons');
  }
  var polygons = _polygons;
  if (polygons == null) {
    polygons = decodePolygons(_geometry!);
    _geometry = null;
    _polygons = polygons;
  }
  return polygons;
}