UNPKG

tchen-vuelayers

Version:

Web map Vue components with the power of OpenLayers

22 lines (16 loc) 395 B
import { pick } from '../../util/minilo' import Interaction from './interaction.vue' function plugin (Vue, options = {}) { if (plugin.installed) { return } plugin.installed = true options = pick(options, 'dataProjection') Object.assign(Interaction, options) Vue.component(Interaction.name, Interaction) } export default plugin export { Interaction, plugin as install, }