We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bbea34b + e5b28e5 commit 90acf9bCopy full SHA for 90acf9b
src/GeocoderControl.js
@@ -21,6 +21,10 @@ export default {
21
type: String,
22
required: true
23
},
24
+ position: {
25
+ type: String,
26
+ default: "top-right"
27
+ },
28
zoom: {
29
type: Number,
30
default: 16
@@ -73,6 +77,10 @@ export default {
73
77
type: Function,
74
78
default: null
75
79
80
+ mapboxgl: {
81
+ type: Object,
82
+ default: null,
83
76
84
// Component options
85
input: {
86
@@ -119,7 +127,7 @@ export default {
119
127
120
128
methods: {
121
129
$_deferredMount() {
122
- this.map.addControl(this.control);
130
+ this.map.addControl(this.control, this.position);
123
131
if (this.input) {
124
132
this.control.setInput(this.input);
125
133
}
0 commit comments