vue-google-maps
vue-google-maps copied to clipboard
How to move camera to position
How to move camera to position ?
For me, I added a ref to the CMap Component then the code to change position would look like this
let position = {
lat: latitudeValue,
lng: longitudeValue
};
this.$ref.mapRef.$mapPromise.then(map => map.panTo(position));
it tells the map to move to that position