react-google-maps-api
react-google-maps-api copied to clipboard
how to disable map zoom when DirectionsRenderer redraws the path
how to disable map zoom when DirectionsRenderer redraws the path
const Directions = ({ directionsResponse }) => { return ( <DirectionsRenderer directions={directionsResponse} options={{ polylineOptions: { strokeColor: 'blue', }, markerOptions: { icon: { url: "icon.png", }, }, }} /> ) }
use eslint-plugin-react-perf and cache all props before passing, and react.memo for all components