public class LocateOptions
extends org.fujion.ancillary.Options
| Modifier and Type | Field and Description |
|---|---|
Boolean |
enableHighAccuracy
Enables high accuracy, see description in the W3C spec.
|
Integer |
maximumAge
Maximum age of detected location.
|
Integer |
maxZoom
The maximum zoom for automatic view setting when using setView option.
|
Boolean |
setView
If true, automatically sets the map view to the user location with respect to detection accuracy, or to world
view if geolocation failed.
|
Integer |
timeout
Number of milliseconds to wait for a response from geolocation before firing a locationerror event.
|
Boolean |
watch
If true, starts continuous watching of location changes (instead of detecting it once) using W3C watchPosition
method.
|
| Constructor and Description |
|---|
LocateOptions() |
@Option public Boolean watch
Default: false
@Option public Boolean setView
Default: false
@Option public Integer maxZoom
Default: no maximum
@Option public Integer timeout
Default: 10000
@Option public Integer maximumAge
Default: 0
@Option public Boolean enableHighAccuracy
Default: false
Copyright © 2023 Fujion Framework. All rights reserved.