How to Add Google Maps in your Website

Step 1: Get your API key

  • Go to the Google API Console.
  • Create a Project
  • On credentials page you will get your api key

Step 2: Create a HTML Page

<!DOCTYPE html>
<html>
<body>
<h1>This is my Map</h1>
<div id=”map”>Your map will come here</div>
</body>
<html>

Note : You can have any of your own customize code. Just make sure you give id=”map” which should be same in your javascript code.

Continue Reading..