PolygonMarker<T> class

Draws a closed polygon. The optional text will be drawn in the middle of the polygon.

Inheritance

Constructors

PolygonMarker({dynamic display = Display.ALWAYS, int minZoomLevel = 0, int maxZoomLevel = 65535, T? item, MarkerCaption? markerCaption, double bitmapWidth = 20, double bitmapHeight = 20, int bitmapPercent = 100, String? bitmapSrc, int? fillColor, double strokeWidth = 1.0, int strokeColor = 0xff000000, List<double>? strokeDasharray, required DisplayModel displayModel})

Properties

bitmap ↔ ResourceBitmap?
getter/setter pairinherited
bitmapHeight double
getter/setter pairinherited
bitmapInvalid bool
getter/setter pairinherited
bitmapPaint MapPaint?
getter/setter pairinherited
bitmapPercent int
getter/setter pairinherited
bitmapSrc String?
getter/setter pairinherited
bitmapWidth double
getter/setter pairinherited
display → Display
finalinherited
fill MapPaint?
getter/setter pair
fillColor int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
item ↔ T?
the item this marker represents.
getter/setter pairinherited
mapPath MapPath?
getter/setter pair
markerCaption MarkerCaption?
no setterinherited
maxZoomLevel int
getter/setter pairinherited
minZoomLevel int
getter/setter pairinherited
path List<ILatLong>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stroke MapPaint?
getter/setter pair
strokeColor int
final
strokeDasharray List<double>?
final
strokeWidth double
latefinal

Methods

addLatLong(ILatLong latLong) → void
dispose() → void
inherited
initBitmap(SymbolCache? symbolCache) Future<void>
inherited
initResources(SymbolCache? symbolCache) Future<void>
isTapped(TapEvent tapEvent) bool
returns true if the position specified by tapEvent is in the area of this marker. Note that tapEvent represents the position at the time the tap has been executed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(MarkerCallback markerCallback) → void
Renders this object. Called by markerPointer -> markerRenderer
inherited
renderBitmap(MarkerCallback markerCallback) → void
renders the bitmap portion of this marker. This method is called by render() which also call the render method for the caption
override
setBitmapSrc(String? bitmapSrc, SymbolCache? symbolCache) Future<void>
Sets a new bitmap and destroys the old one if available
inherited
setMarkerCaption(MarkerCaption? markerCaption) → void
inherited
shouldPaint(BoundingBox boundary, int zoomLevel) bool
returns true if this marker is within the visible boundary and therefore should be painted. Since the initResources() is called only if shouldPoint() returns true, do not test for available resources here.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited