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
ToolBar
Class ToolBar
Hierarchy
EventBindable
ToolBar
Implements
MapControl
Index
Constructors
constructor
Methods
do
Location
get
Location
get
Offset
hide
hide
Direction
hide
Location
hide
Ruler
off
on
set
Offset
show
show
Direction
show
Location
show
Ruler
Constructors
constructor
new
Tool
Bar
(
options
?:
{
autoPosition
?:
boolean
;
direction
?:
boolean
;
liteStyle
?:
boolean
;
locate
?:
boolean
;
locationMarker
?:
Marker
;
noIpLocate
?:
boolean
;
offset
?:
Pixel
;
position
?:
string
;
ruler
?:
boolean
;
useNative
?:
boolean
}
)
:
ToolBar
Parameters
Optional
options:
{
autoPosition
?:
boolean
;
direction
?:
boolean
;
liteStyle
?:
boolean
;
locate
?:
boolean
;
locationMarker
?:
Marker
;
noIpLocate
?:
boolean
;
offset
?:
Pixel
;
position
?:
string
;
ruler
?:
boolean
;
useNative
?:
boolean
}
Optional
auto
Position
?:
boolean
Optional
direction
?:
boolean
Optional
lite
Style
?:
boolean
Optional
locate
?:
boolean
Optional
location
Marker
?:
Marker
Optional
no
IpLocate
?:
boolean
Optional
offset
?:
Pixel
Optional
position
?:
string
Optional
ruler
?:
boolean
Optional
use
Native
?:
boolean
Returns
ToolBar
Methods
do
Location
do
Location
(
)
:
void
Returns
void
get
Location
get
Location
(
)
:
{
lat
:
number
;
lng
:
number
}
Returns
{
lat
:
number
;
lng
:
number
}
lat
:
number
lng
:
number
get
Offset
get
Offset
(
)
:
Pixel
Returns
Pixel
hide
hide
(
)
:
void
Returns
void
hide
Direction
hide
Direction
(
)
:
void
Returns
void
hide
Location
hide
Location
(
)
:
void
Returns
void
hide
Ruler
hide
Ruler
(
)
:
void
Returns
void
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
set
Offset
set
Offset
(
offset
:
Pixel
)
:
void
Parameters
offset:
Pixel
Returns
void
show
show
(
)
:
void
Returns
void
show
Direction
show
Direction
(
)
:
void
Returns
void
show
Location
show
Location
(
)
:
void
Returns
void
show
Ruler
show
Ruler
(
)
:
void
Returns
void
Exports
Externals
AMap
AMap.
Tile
Layer
AMap.event
Tool
Bar
constructor
do
Location
get
Location
get
Offset
hide
hide
Direction
hide
Location
hide
Ruler
off
on
set
Offset
show
show
Direction
show
Location
show
Ruler
Generated using
TypeDoc