Builder
Composes and builds a ScaleBarSettings object.
This is a concrete implementation of the builder design pattern.
Constructors
Functions
Returns a ScaleBarSettings reference to the object being constructed by the builder.
Setter for borderWidth: defines width of the border for the scale bar. Default value: 2. This property is specified in pixels.
Setter for enabled: whether the scale is visible on the map. Default value: true.
Setter for height: defines height of the scale bar. Default value: 2. This property is specified in pixels.
Setter for isMetricUnits: 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.
Setter for marginBottom: defines the margin to the bottom that the scale bar honors. Default value: 4. This property is specified in pixels.
Setter for marginLeft: defines the margin to the left that the scale bar honors. Default value: 4. This property is specified in pixels.
Setter for marginRight: defines the margin to the right that the scale bar honors. Default value: 4. This property is specified in pixels.
Setter for marginTop: defines the margin to the top that the scale bar honors. Default value:
Setter for position: defines where the scale bar is positioned on the map Default value: "top-left".
Setter for primaryColor: defines primary color of the scale bar. Default value: "black".
Setter for ratio: configures ratio of scale bar max width compared with MapView width, default is 0.5. Default value: 0.5.
Setter for refreshInterval: configures minimum refresh interval, in millisecond, default is
Setter for secondaryColor: defines secondary color of the scale bar. Default value: "white".
Setter for showTextBorder: configures whether to show the text border or not, default is true. Default value: true.
Setter for textBarMargin: defines margin of the text bar of the scale bar. Default value: 8. This property is specified in pixels.
Setter for textBorderWidth: defines text border width of the scale bar. Default value: 2. This property is specified in pixels.
Setter for textColor: defines text color of the scale bar. Default value: "black".
Setter for textSize: defines text size of the scale bar. Default value: 8. This property is specified in pixels.
Setter for useContinuousRendering: 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.
Properties
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.