MapPolylineDashImageRepresentation class - mapview library - Dart API
MapPolylineDashImageRepresentation class abstract
Represents a dash pattern for the map polyline consisting of images rendered with certain gaps from each other.
This dash pattern representation consists only of images rendered at certain points along the polyline. For rendering them without any distortions, polyline gets sliced into series of straight segments that are multiple of sum of dash and gap lengths. For this reason, the new polyline geometry might not align fully with original geometry.
The MapPolylineDashImageRepresentation.dashImage is stretched according to MapPolylineDashImageRepresentation.dashLength
and MapPolylineDashImageRepresentation.dashWidth, with image's width matched to dashLength and
image's height matched to dashWidth. The image is oriented so that its bottom is on the
left-hand side between vertices n and n+1.
The spacing between images is specified by MapPolylineDashImageRepresentation.gapLength.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
- Implemented types
Constructors
- MapPolylineDashImageRepresentation(MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, MapMeasureDependentRenderSize dashWidth, MapImage image)
-
Creates a simple dash pattern in which the lengths of a dash and gap can be different.
factory
- MapPolylineDashImageRepresentation.uniform(MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize dashWidth, MapImage image)
-
Creates a uniform dash pattern in which the length of a gap is the same as the length of
a dash.
factory
Properties
- dashImage → MapImage
-
Image to be rendered in place of dash space.
It is stretched to fill whole polyline width and length of each dash.
Gets the image that is rendered in place of dash space.
no setter
- dashLength → MapMeasureDependentRenderSize
-
The map measure dependent length of a dash, to which image width is stretched.
Gets the map measure dependent length of a dash, to which image width is stretched.
no setter
- dashWidth → MapMeasureDependentRenderSize
-
The map measure dependent width of a dash, to which image height is stretched.
Gets the map measure dependent width of a dash, to which image height is stretched.
no setter
- gapLength → MapMeasureDependentRenderSize
-
The map measure dependent length of a gap between dash images.
Gets the map measure dependent length of a gap between dash images.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited