概述
WmapGL API参考
核心类
Map
Marker
Popup
控件
IControl
NavigationControl
ScaleControl
FullscreenControl
数据源
GeoJSONSource
VideoSource
ImageSource
CanvasSource
数据类型
LngLat
LngLatLike
LngLatBounds
事件
Evented
MapMouseEvent
MapTouchEvent
MapZoomEvent
MapDataEvent
MapWheelEvent
Published with GitBook
ScaleControl
ScaleControl
比例尺控件。
构造函数
new ScaleControl(options: Object?)
构造选项
选项名
类型
默认值
描述
maxWidth
number
'100'
控件的最大长度,单位为像素
unit
string
'metric'
比例尺单位,可取 'imperial' , 'metric' , 'nautical'
方法
方法
返回值
描述
setUnit(unit:string)
设置比例尺单位
results matching "
"
No results matching "
"