0.1.1 • Published 7 years ago
maptalks.layers v0.1.1
maptalks.control.Layers
Layer switcher control for maptalks.js
Usage
const layers = [new maptalks.VectorLayer('v1')]
const control = new maptalks.control.Layers(layers)
map.addControl(control)
Layer switcher control for maptalks.js
const layers = [new maptalks.VectorLayer('v1')]
const control = new maptalks.control.Layers(layers)
map.addControl(control)