Search
Preparing search index...
The search index is not available
@types/amap-js-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@types/amap-js-sdk
AMap
Geolocation
Class Geolocation
Hierarchy
EventBindable
Geolocation
Index
Constructors
constructor
Methods
clear
Watch
get
Current
Position
is
Supported
off
on
watch
Position
Constructors
constructor
new
Geolocation
(
options
:
{
buttonDom
?:
string
|
HTMLElement
;
buttonOffset
?:
Pixel
;
buttonPosition
?:
string
;
circleOptions
?:
CircleOptions
;
convert
?:
boolean
;
enableHighAccuracy
?:
boolean
;
markerOptions
?:
MarkerOptions
;
maximumAge
?:
number
;
noIpLocate
?:
boolean
;
panToLocation
?:
boolean
;
showButton
?:
boolean
;
showCircle
?:
boolean
;
showMarker
?:
boolean
;
timeout
?:
number
;
useNative
?:
boolean
;
zoomToAccuracy
?:
boolean
}
)
:
Geolocation
Parameters
options:
{
buttonDom
?:
string
|
HTMLElement
;
buttonOffset
?:
Pixel
;
buttonPosition
?:
string
;
circleOptions
?:
CircleOptions
;
convert
?:
boolean
;
enableHighAccuracy
?:
boolean
;
markerOptions
?:
MarkerOptions
;
maximumAge
?:
number
;
noIpLocate
?:
boolean
;
panToLocation
?:
boolean
;
showButton
?:
boolean
;
showCircle
?:
boolean
;
showMarker
?:
boolean
;
timeout
?:
number
;
useNative
?:
boolean
;
zoomToAccuracy
?:
boolean
}
Optional
button
Dom
?:
string
|
HTMLElement
Optional
button
Offset
?:
Pixel
Optional
button
Position
?:
string
Optional
circle
Options
?:
CircleOptions
Optional
convert
?:
boolean
Optional
enable
High
Accuracy
?:
boolean
Optional
marker
Options
?:
MarkerOptions
Optional
maximum
Age
?:
number
Optional
no
IpLocate
?:
boolean
Optional
pan
ToLocation
?:
boolean
Optional
show
Button
?:
boolean
Optional
show
Circle
?:
boolean
Optional
show
Marker
?:
boolean
Optional
timeout
?:
number
Optional
use
Native
?:
boolean
Optional
zoom
ToAccuracy
?:
boolean
Returns
Geolocation
Methods
clear
Watch
clear
Watch
(
watchId
:
number
)
:
number
Parameters
watchId:
number
Returns
number
get
Current
Position
get
Current
Position
(
)
:
void
Returns
void
is
Supported
is
Supported
(
)
:
boolean
Returns
boolean
off
off
(
eventName
:
string
, callback
:
EventCallback
)
:
void
Parameters
eventName:
string
callback:
EventCallback
Returns
void
on
on
(
eventName
:
string
, callback
:
EventCallback
)
:
void
Parameters
eventName:
string
callback:
EventCallback
Returns
void
watch
Position
watch
Position
(
)
:
number
Returns
number
Exports
Externals
AMap
AMap.
Tile
Layer
AMap.event
Geolocation
constructor
clear
Watch
get
Current
Position
is
Supported
off
on
watch
Position
Generated using
TypeDoc