ScaleBarSettings class
Shows the scale bar on the map.
Constructors
- ScaleBarSettings({bool? enabled, OrnamentPosition? position, double? marginLeft, double? marginTop, double? marginRight, double? marginBottom, int? textColor, int? primaryColor, int? secondaryColor, double? borderWidth, double? height, double? textBarMargin, double? textBorderWidth, double? textSize, bool? isMetricUnits, int? refreshInterval, bool? showTextBorder, double? ratio, bool? useContinuousRendering})
Properties
- borderWidth ↔ double?
-
Defines width of the border for the scale bar.
Default value: 2.
read / write
- enabled ↔ bool?
-
Whether the scale is visible on the map.
Default value: true.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- height ↔ double?
-
Defines height of the scale bar.
Default value: 2.
read / write
- isMetricUnits ↔ bool?
-
Whether the scale bar is using metric unit. True if the scale bar is using metric system, false if the scale bar is using imperial units.
Default value: true.
read / write
- marginBottom ↔ double?
-
Defines the margin to the bottom that the scale bar honors.
Default value: 4.
read / write
- marginLeft ↔ double?
-
Defines the margin to the left that the scale bar honors.
Default value: 4.
read / write
- marginRight ↔ double?
-
Defines the margin to the right that the scale bar honors.
Default value: 4.
read / write
- marginTop ↔ double?
-
Defines the margin to the top that the scale bar honors.
Default value: 4.
read / write
- position ↔ OrnamentPosition?
-
Defines where the scale bar is positioned on the map
Default value: "top-left".
read / write
- primaryColor ↔ int?
-
Defines primary color of the scale bar.
Default value: "black".
read / write
- ratio ↔ double?
-
configures ratio of scale bar max width compared with MapView width, default is 0.5.
Default value: 0.5.
read / write
- refreshInterval ↔ int?
-
Configures minimum refresh interval, in millisecond, default is 15.
Default value: 15.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- secondaryColor ↔ int?
-
Defines secondary color of the scale bar.
Default value: "white".
read / write
- showTextBorder ↔ bool?
-
Configures whether to show the text border or not, default is true.
Default value: true.
read / write
- textBarMargin ↔ double?
-
Defines margin of the text bar of the scale bar.
Default value: 8.
read / write
- textBorderWidth ↔ double?
-
Defines text border width of the scale bar.
Default value: 2.
read / write
- textColor ↔ int?
-
Defines text color of the scale bar.
Default value: "black".
read / write
- textSize ↔ double?
-
Defines text size of the scale bar.
Default value: 8.
read / write
- useContinuousRendering ↔ bool?
-
If set to True scale bar will be triggering onDraw depending on ScaleBarSettings.refreshInterval even if actual data did not change. If set to False scale bar will redraw only on demand. Defaults to False and should not be changed explicitly in most cases. Could be set to True to produce correct GPU frame metrics when running gfxinfo command.
Default value: false.
read / write
Methods
-
encode(
) → Object -
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
Static Methods
-
decode(
Object result) → ScaleBarSettings