Include Google Map In Html. Open the map or directions you want to embed using the regular Google Maps interface. By now more than 400000 websites already use the embedded version of Google Maps.
Place the following code into your web page HTML where you need to include the Google Map. Open the map or directions you want to embed using the regular Google Maps interface. When the page is loaded the initMap function is called - this is done by the Google Maps addDomListener function.
Then click the menu symbol in the top left corner to find the embed code link.
On the right side click on share click on HTML and copy the iframe code and paste it into your html document 2Deploy your own map using Leaflet You can embed OpenStreetMap into your web s ite. To do so you need Latitude Longitude of the location you want to embed. Click Map Preview below and you will see how the map will look on your site. Var mapnew googlemapsMapdocumentgetElementByIdmap mapOptions.