MapArrow constructor

MapArrow(
  1. GeoPolyline geometry,
  2. double widthInPixels,
  3. Color color
)

Creates a new MapArrow instance.

Altitude component of GeoPolyline's vertices is ignored.

  • geometry The geometry of the arrow tail. The last coordinate in the list defines the position where the head of the arrow is located.

  • widthInPixels The width of the arrow tail in pixel. Negative values are clamped to 0. The tip is scaled accordingly.

  • color The color of the arrow. The alpha channel is ignored, the color is interpreted as fully opaque.

Implementation

factory MapArrow(GeoPolyline geometry, double widthInPixels, ui.Color color) => $prototype.$init(geometry, widthInPixels, color);