tchen-vuelayers
Version:
Web map Vue components with the power of OpenLayers
22 lines (20 loc) • 345 B
JavaScript
import { pick, replaceTokens } from '../util/minilo'
export default {
props: {
url: {
type: String,
},
},
computed: {
/**
* @type {string}
*/
urlTmpl () {
return replaceTokens(this.url, pick(this, this.urlTokens))
},
/**
* @type {string[]}
*/
urlTokens () { return [] },
},
}