<!DOCTYPE html>

<h1>My Google Map</h1>

<div id=”googleMap” style=”width:100%;height:800px;”></div>

function myMap() {
var mapProp= {
center:new google.maps.LatLng(21.505642,-0.167850),
var map=new google.maps.Map(document.getElementById(“googleMap”),mapProp);

<script src=”https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap”></script&gt;


1 Answers

Google Maps JavaScript API documentation give me quick reference on google map events, trigger, layers etc

have a look of url: https://developers.google.com/maps/documentation/javascript/examples/


Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.