Skip to content

Commit e7dc04e

Browse files
chore: add position prop
1 parent bbea34b commit e7dc04e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/GeocoderControl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export default {
2121
type: String,
2222
required: true
2323
},
24+
position: {
25+
type: String,
26+
default: "top-right"
27+
},
2428
zoom: {
2529
type: Number,
2630
default: 16
@@ -119,7 +123,7 @@ export default {
119123

120124
methods: {
121125
$_deferredMount() {
122-
this.map.addControl(this.control);
126+
this.map.addControl(this.control, this.position);
123127
if (this.input) {
124128
this.control.setInput(this.input);
125129
}

0 commit comments

Comments
 (0)