Skip to content

sankalpaa/GoogleMapNextjs

Repository files navigation

Get started with next.js

npm Dependencies

  1. npm i "@vis.gl/react-google-maps"
  2. @googlemaps/markerclusterer
  3. @react-google-maps/api

npm version used in this repo.

  1. @react-google-maps/api = 2.19.3,
  2. @googlemaps/markerclusterer = 2.5.3
  3. @vis.gl/react-google-maps = 1.1.0

environment varialbles

  1. GOOGLE_MAPS_API_KEY= Use to hold google map api key.
  2. GOOGLE_MAPS_ID= Google map id - can get from google cloud platform

Use Lint to maintain better coding standard npm run lint -- --fix Use command to check lint issues and possible auto fixes.

Please check following blog with more detail: https://github.com/sankalpaa/GoogleMapNextjs