JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.81k stars 437 forks source link

Add zoom transition effect on click any place #3103

Open komalharmale opened 2 years ago

komalharmale commented 2 years ago
code Base

<GoogleMap id="direction-example" mapContainerStyle={containerStyle} center={{ lat: origin_latitude, lng: origin_longitude }} zoom={12}>

########################## In above code i want to handle zoom in and out functionality according to selected origin and destination .user can dynamically select destination lat lng and according to that map can handle zoom in and out to fit source and destination Marker in window area i go through the document but not able to find way to handle dynamic zoom in zoom out after selecting destination point to fit both marker on window node --version- v14.18.0

react version "17.0.2

webpack version

@babel version

@react-google-maps/api version 2.12.1