- Add Google Map in ReactJS.
- Auto-fit map and remove old markers when data changes.
- Set Active/Inactive markers on selection.
- Get ID of selected marker from map.
- Center and zoom map when selected from list.
- Attach events to map and markers.
- Add InfoWindow.
- Clone,
npm i
andnpm start
to just run the project. - If you want to add Google Map to other project then copy files of
/map
folder to your directory. ChangeLocationMap.js
according to your need. - Add map key to your environments.
google-maps-api-loader