MapPolyline class - mapview library - Dart API
MapPolyline
MapPolyline class abstract
A visual representation of a line on the map.
The geometry to be visualized is represented by an instance of GeoPolyline.
Altitude component of GeoPolyline's vertices is ignored.
Constructors
- MapPolyline.withRepresentation(GeoPolyline geometry, MapPolylineRepresentation representation)
-
Creates a new
MapPolylineinstance with a specified visual representation.factory
Properties
- drawOrder ↔ int
-
The draw order of the polyline.
Gets the draw order of the polyline.
getter/setter pair
- drawOrderType ↔ DrawOrderType
-
The draw order type of the polyline.
Gets the draw order type of the polyline.
getter/setter pair
- geometry ↔ GeoPolyline
-
The list of vertices that represent the geometry of the polyline.
Gets the geometry of the polyline.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
mapContentCategoriesToBlock
↔ List<
MapContentCategory> -
List of map content categories this polyline should block.
Gets list of map content categories this polyline should block.
getter/setter pair
- metadata ↔ Metadata?
-
The
Metadatainstance attached to this polyline. Gets theMetadatainstance attached to this polyline. This will benullif nothing has been attached before.getter/setter pair - progress ↔ double
-
The progress from the polyline's starting point, as a ratio of its total length clamped to
the range [0, 1].
Gets the progress of the polyline, 0 by default.
getter/setter pair
- progressColor ↔ Color
-
The color used for the progress part of the polyline.
Gets the progress color of the polyline, opaque white by default.
getter/setter pair
- progressGradientLength ↔ MapMeasureDependentRenderSize
-
The maximum gradient length between
MapPolyline.lineColor' and 'MapPolyline.progressColorin zoom level dependent pixels. Gets the maximum gradient length betweenMapPolyline.lineColor' and 'MapPolyline.progressColorin zoom level dependent pixels.getter/setter pair - progressOutlineColor ↔ Color
-
The color used for outline of the progress part of the polyline.
Gets the progress outline color of the polyline, opaque white by default.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
visibilityRanges
↔ List<
MapMeasureRange> -
The list of visibility ranges. The map polyline is visible only inside these map measure ranges.
Gets the list of visibility ranges. The map polyline is visible only inside these map measure
ranges. When empty (the default), the map polyline is visible without map measure restrictions.
getter/setter pair
Methods
-
cancelAnimation(
MapPolylineAnimation animation) → void - Cancels single ongoing animation of this map polyline.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setRepresentation(
MapPolylineRepresentation representation) → void -
Changes the appearance of the
MapPolylineinstance. -
startAnimation(
MapPolylineAnimation animation, AnimationListener listener) → void - Starts an animation of this map polyline.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited