@JsType(isNative=true,
namespace="<global>",
name="Object")
public class LocateOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LocateOptions.Builder
The Class Builder.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getEnableHighAccuracy()
Gets whether high accuracy is enabled, see description in
the
W3C spec .
|
java.lang.Number |
getMaximumAge()
Gets the maximum age of detected location.
|
java.lang.Number |
getMaxZoom()
Gets the maximum zoom for automatic view setting when using `setView`
option.
|
java.lang.Boolean |
getSetView()
Gets whether If true, automatically sets the map view to the user
location with respect to detection accuracy, or to world view if
geolocation failed.
|
java.lang.Number |
getTimeout()
Gets the number of milliseconds to wait for a response from geolocation
before firing a locationerror event.
|
java.lang.Boolean |
getWatch()
Gets whether continuous watching of location changes (instead of
detecting it once) using W3C watchPosition method is set.
|
@JsOverlay public final java.lang.Boolean getWatch()
@JsOverlay public final java.lang.Boolean getSetView()
@JsOverlay public final java.lang.Number getMaxZoom()
@JsOverlay public final java.lang.Number getTimeout()
@JsOverlay public final java.lang.Number getMaximumAge()
@JsOverlay public final java.lang.Boolean getEnableHighAccuracy()