vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

How to move camera to position

Open delphiy opened this issue 4 years ago • 1 comments

How to move camera to position ?

delphiy avatar Nov 01 '20 15:11 delphiy

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

recsamrc avatar Nov 06 '20 06:11 recsamrc