IconMarker<T> class
A marker which uses flutter Icons. The size can be set with the fontSize parameter. Currently there is no way to set the position of the marker (to e.g. above the position) so an icon which is suitable for being centered should be used.
- Inheritance
-
- Object
- Marker<
T> - BasicMarker<
T> - BasicPointMarker<
T> - IconMarker
- Mixed-in types
Constructors
-
IconMarker.new({required IconData icon, required Color? color, Display display = Display.ALWAYS, int minZoomLevel = 0, int maxZoomLevel = 65535, List<
Shadow> ? shadows, double fontSize = 26, T? item, required ILatLong center, required DisplayModel displayModel})
Properties
-
captions
→ List<
Caption> -
no setterinherited
- color → Color?
-
final
- display → Display
-
finalinherited
- fontSize → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
final
- item ↔ T?
-
the item this marker represents.
getter/setter pairinherited
- latitude → double
-
no setterinherited
- latLong ↔ ILatLong
-
The position in the map if the current marker is a "point". For path this makes no sense so a pathmarker must control its own position
getter/setter pairinherited
- longitude → double
-
no setterinherited
- mappoint → Mappoint
-
no setterinherited
- maxZoomLevel ↔ int
-
getter/setter pairinherited
- minZoomLevel ↔ int
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
Shadow> ? -
final
- symbolFinder ↔ _SpecialSymbolFinder
-
getter/setter pairinherited
Methods
-
addCaption(
{required String caption, double strokeWidth = 2.0, int strokeColor = 0xffffffff, int fillColor = 0xff000000, double fontSize = 10.0, int minZoomLevel = 0, int maxZoomLevel = 65535, Position position = Position.BELOW, double dy = 0, int strokeMinZoomLevel = DisplayModel.STROKE_MIN_ZOOMLEVEL_TEXT, required DisplayModel displayModel}) → Caption? -
inherited
-
clearPaintMixin(
) → void -
inherited
-
dispose(
) → void -
inherited
-
disposePaintMixin(
) → void -
inherited
-
getDy(
int zoomLevel) → double -
inherited
-
getFillPaint(
int zoomLevel) → MapPaint -
inherited
-
getStrokePaint(
int zoomLevel) → MapPaint -
inherited
-
getStrokeWidth(
) → double -
inherited
-
getSymbolBoundary(
) → MapRectangle -
hasCaptions(
) → bool -
inherited
-
initPaintMixin(
int strokeMinZoomLevel) → void -
inherited
-
isFillTransparent(
) → bool -
inherited
-
isStrokeTransparent(
) → bool -
inherited
-
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
-
prepareScalePaintMixin(
int zoomLevel) → void -
inherited
-
removeAllCaptions(
) → void -
inherited
-
removeCaption(
Caption caption) → void -
inherited
-
removeCaptionPerText(
String caption) → void -
inherited
-
render(
MapCanvas flutterCanvas, MarkerContext markerContext) → void -
Renders this object. Called by markerPainter
override
-
renderBitmap(
MapCanvas flutterCanvas, MarkerContext markerContext) → void -
renders the bitmap portion of this marker. This method is called by render() which also call the render method for the caption
override
-
renderMarker(
{required MapCanvas flutterCanvas, required MarkerContext markerContext, required MapRectangle symbolBoundary, required Mappoint coordinatesAbsolute}) → void -
inherited
-
setDy(
double dy) → void -
inherited
-
setFillBitmapShader(
Bitmap bitmap) → void -
inherited
-
setFillColor(
Color color) → void -
inherited
-
setFillColorFromNumber(
int color) → void -
inherited
-
setLatLong(
ILatLong latLong) → void -
inherited
-
setStrokeBitmapShader(
Bitmap bitmap) → void -
inherited
-
setStrokeCap(
Cap cap) → void -
inherited
-
setStrokeColor(
Color color) → void -
inherited
-
setStrokeColorFromNumber(
int color) → void -
inherited
-
setStrokeDashArray(
List< double> dashArray) → void -
inherited
-
setStrokeJoin(
Join join) → void -
inherited
-
setStrokeWidth(
double strokeWidth) → void -
inherited
-
shouldPaint(
BoundingBox boundary, int zoomLevel) → bool -
returns true if the marker should be painted. The
boundary
represents the currently visible areaoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited