public static class LocateOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
LocateOptions |
build()
Builds the LocateOptions new instance
|
LocateOptions.Builder |
enableHighAccuracy(java.lang.Boolean enableHighAccuracy)
Gets whether high accuracy is enabled, see description in the W3C
spec .
|
LocateOptions.Builder |
maximumAge(java.lang.Number maximumAge)
Maximum age of detected location.
|
LocateOptions.Builder |
maxZoom(java.lang.Number maxZoom)
The maximum zoom for automatic view setting when using `setView`
option.
|
LocateOptions.Builder |
setView(java.lang.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.
|
LocateOptions.Builder |
timeout(java.lang.Number timeout)
Number of milliseconds to wait for a response from geolocation before
firing a locationerror event.Timeout.
|
LocateOptions.Builder |
watch(java.lang.Boolean watch)
If true, starts continuous watching of location changes (instead of
detecting it once) using W3C watchPosition method.
|
public LocateOptions.Builder watch(java.lang.Boolean watch)
watch
- the watchpublic LocateOptions.Builder setView(java.lang.Boolean setView)
setView
- the set viewpublic LocateOptions.Builder maxZoom(java.lang.Number maxZoom)
maxZoomLocate
- the max zoom locatepublic LocateOptions.Builder timeout(java.lang.Number timeout)
timeout
- the timeoutpublic LocateOptions.Builder maximumAge(java.lang.Number maximumAge)
maximumAge
- the maximum agepublic LocateOptions.Builder enableHighAccuracy(java.lang.Boolean enableHighAccuracy)
enableHighAccuracy
- the enable high accuracypublic LocateOptions build()