vue-mapbox
Version:
> Combine powers of [Vue.js](https://vuejs.org/) and [Mapbox Gl JS](https://mapbox.com/mapbox-gl-js)
23 lines (19 loc) • 377 B
JavaScript
import controlMixin from "./controlMixin";
export default {
name: "NavigationControl",
mixins: [controlMixin],
props: {
showCompass: {
type: Boolean,
default: true
},
showZoom: {
type: Boolean,
default: true
}
},
created() {
this.control = new this.mapbox.NavigationControl(this.$props);
this.$_addControl();
}
};