Control
所有控件类的父类
构造选项
| 选项名 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| position | String | 'topright' | 控件的位置,可取'topleft'、 'topright'、 'bottomleft'、 'bottomright'。 |
方法
| 方法名 | 返回值 | 描述 |
|---|---|---|
| addTo(< Map > type) | this | 将图层添加到地图中 |
| remove() | this | 从地图中移除图层 |
所有控件类的父类
| 选项名 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| position | String | 'topright' | 控件的位置,可取'topleft'、 'topright'、 'bottomleft'、 'bottomright'。 |
| 方法名 | 返回值 | 描述 |
|---|---|---|
| addTo(< Map > type) | this | 将图层添加到地图中 |
| remove() | this | 从地图中移除图层 |