Marker.fromArea constructor

Marker.fromArea(
  1. GeographicArea area
)

Create a marker from an existing GeographicArea.

The area's shape will be converted to the marker representation.

Parameters

  • area: Geographic area to convert into a marker.

Returns

  • A new Marker whose geometry corresponds to the provided area.

Implementation

factory Marker.fromArea(final GeographicArea area) {
  return Marker._createFromArea(area);
}