tchen-vuelayers
Version:
Web map Vue components with the power of OpenLayers
22 lines (16 loc) • 371 B
JavaScript
import { pick } from '../../util/minilo'
import Overlay from './overlay.vue'
function plugin (Vue, options = {}) {
if (plugin.installed) {
return
}
plugin.installed = true
options = pick(options, 'dataProjection')
Object.assign(Overlay, options)
Vue.component(Overlay.name, Overlay)
}
export default plugin
export {
Overlay,
plugin as install,
}