UNPKG

vue-mapbox

Version:

> Combine powers of [Vue.js](https://vuejs.org/) and [Mapbox Gl JS](https://mapbox.com/mapbox-gl-js)

22 lines (19 loc) 397 B
import controlMixin from "./controlMixin"; export default { name: "AttributionControl", mixins: [controlMixin], props: { compact: { type: Boolean, default: true }, customAttribution: { type: [String, Array], deafault: undefined } }, created() { this.control = new this.mapbox.AttributionControl(this.$props); this.$_addControl(); } };