基础能力
网约车
概述和入门指南
基础服务
高级服务
Appearance
导航控件,添加缩放地图按钮
继承Control 实现IControl
const nCtrol = new NavigationControl({ showCompass: true, // 显示罗盘 showZoom: true, // 显示zoom级别 visualizePitch: true // 按钮可视化俯仰角 }) map.addControl(nCtrol, "right-right")
构造函数
options {showCompass: (boolean | undefined)?, showZoom: (boolean | undefined)?, visualizePitch: (boolean | undefined)?}? 可选参数对象。
options
options.showCompass
options.showZoom
options.visualizePitch