Closed vesper8 closed 2 years ago
I'm trying to set the position of the zoom control. I've been able to do this with no issues using other libraries, but with this one it seems no matter what I do, the zoom control (+ and - buttons) are always positioned in the bottom right corner
I've tried
:zoom-control="true" :zoom-control-options="{ position: 9 }"
And I tried positions from 1 to 11, and nothing seems to make any difference.
Any ideas what I'm doing wrong?
https://developers.google.com/maps/documentation/javascript/reference/control#ControlPosition https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/google.maps/index.d.ts#L282-L338
Hi @vesper8
You should use the zoomControlPosition prop: https://github.com/inocan-group/vue3-google-map/blob/develop/src/components/GoogleMap.vue#L210-L213
zoomControlPosition
Example:
zoom-control-position="LEFT_BOTTOM"
I'm trying to set the position of the zoom control. I've been able to do this with no issues using other libraries, but with this one it seems no matter what I do, the zoom control (+ and - buttons) are always positioned in the bottom right corner
I've tried
And I tried positions from 1 to 11, and nothing seems to make any difference.
Any ideas what I'm doing wrong?
https://developers.google.com/maps/documentation/javascript/reference/control#ControlPosition https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/google.maps/index.d.ts#L282-L338