直接跳到内容
本页目录

Layers Control

The LayersControl allows one to display a layer selector on the map in order to select which layers to display on the map.

All layers have a name attribute which is displayed in the selector and can be changed by the user.

基础用法

API

属性

属性名说明类型默认值
position控件位置enum 'topleft'
collapsed是否折叠boolean true

Events

事件名说明类型

Slots

插槽名说明

方法

方法名说明类型

src/examples/vleaflet/controls/Layers

Layers Control已经加载完毕