@JsType(isNative=true,
namespace="<global>",
name="Object")
public class ControlScaleOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ControlScaleOptions.Builder
The Class Builder.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getImperial()
Gets Whether to show the imperial scale line (mi/ft).
|
java.lang.Number |
getMaxWidth()
Gets Maximum width of the control in pixels.
|
java.lang.Boolean |
getMetric()
Gets Whether to show the metric scale line (m/km).
|
java.lang.String |
getPosition()
Gets the position of the control (one of the map corners)
default "bottomleft" |
java.lang.Boolean |
getUpdateWhenIdle()
Gets whether the control is updated on moveend, otherwise it's always up-to-date (updated on move).
|
@JsOverlay public final java.lang.String getPosition()
@JsOverlay public final java.lang.Number getMaxWidth()
@JsOverlay public final java.lang.Boolean getMetric()
@JsOverlay public final java.lang.Boolean getImperial()
@JsOverlay public final java.lang.Boolean getUpdateWhenIdle()