UNPKG

tchen-vuelayers

Version:

Web map Vue components with the power of OpenLayers

74 lines (65 loc) 1.19 kB
/** * VueLayers * Web map Vue components with the power of OpenLayers * * @package vuelayers * @author Vladimir Vershinin <ghettovoice@gmail.com> * @version 0.11.1 * @license MIT * @copyright (c) 2017-2019, Vladimir Vershinin <ghettovoice@gmail.com> */ import { EPSG_3857 } from '../ol-ext/consts'; import source from './source'; /** * @vueProps */ var props = { crossOrigin: String, projection: { type: String, default: EPSG_3857 } /** * @vueMethods */ }; var methods = { /** * @return {Promise} * @protected */ init: function init() { return source.methods.init.call(this); }, /** * @return {void|Promise<void>} * @protected */ deinit: function deinit() { return source.methods.deinit.call(this); }, /** * @return {void} * @protected */ mount: function mount() { source.methods.mount.call(this); }, /** * @return {void} * @protected */ unmount: function unmount() { source.methods.unmount.call(this); } }; /** * @vueProto * @alias module:mixin/image-source */ var imageSource = { mixins: [source], props: props, methods: methods }; export default imageSource;