MarkerRenderSettings class Maps & 3D Scenes

Visual and styling configuration for a single Marker.

MarkerRenderSettings controls how an individual marker is drawn on the GemMap. It includes icon/image configuration, label styling, polyline and polygon colors and sizes, and labeling modes. Use a MarkerRenderSettings instance when adding sketches or when you need to override collection-level render settings for a single marker.

See also:

Implementers

Constructors

MarkerRenderSettings.new({GemImage? image, LineType polylineType = LineType.styleDefault, Color polylineInnerColor = defaultColor, Color polylineOuterColor = defaultColor, Color polygonFillColor = defaultColor, Color labelTextColor = defaultColor, double polylineInnerSize = defaultPolylineInnerSize, double polylineOuterSize = defaultPolylineOuterSize, double labelTextSize = defaultLabelTextSize, double imageSize = defaultImageSize, Set<MarkerLabelingMode> labelingMode = const <MarkerLabelingMode>{MarkerLabelingMode.itemLabelVisible, MarkerLabelingMode.groupLabelVisible, MarkerLabelingMode.iconBottomCenter, MarkerLabelingMode.textAbove}})
Create a MarkerRenderSettings instance.
MarkerRenderSettings.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create an instance.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
image ↔ GemImage?
Optional image used as marker icon.
getter/setter pair
imageSize double
Size of the marker image in millimetres. A special default (-1.0) indicates SDK default sizing behavior.
getter/setter pair
labelingMode Set<MarkerLabelingMode>
Which label modes are enabled for this marker.
getter/setter pair
labelTextColor Color
Color used for marker label text.
getter/setter pair
labelTextSize double
Label text size, expressed in millimetres.
getter/setter pair
polygonFillColor Color
Fill color used when rendering polygon markers.
getter/setter pair
polylineInnerColor Color
Inner color used when rendering polylines.
getter/setter pair
polylineInnerSize double
Inner stroke width for polyline markers, in millimetres.
getter/setter pair
polylineOuterColor Color
Outer color used when rendering polylines.
getter/setter pair
polylineOuterSize double
Outer stroke width for polyline markers, in millimetres.
getter/setter pair
polylineType LineType
The polyline drawing style.
getter/setter pair
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
toJson() Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultColor → const Color
Default color for various members. Members assigned with this value will be changed internally to something more appropriate.
defaultImageSize → const double
Default size for imageSize.
defaultLabelTextSize → const double
Default size for labelTextSize.
defaultMembersValue → const int
Default value of various members. Members assigned with this value will be changed internally to something more appropriate.
defaultPolylineInnerSize → const double
Default size for polylineInnerSize.
defaultPolylineOuterSize → const double
Default size for polylineOuterSize.