QuestionsJavascript Google Maps Tutorial
mmWebetutorial Staff asked 3 months ago

<!DOCTYPE html>
<html>
<body>

<h1>My Google Map</h1>

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

<script>
function myMap() {
var mapProp= {
center:new google.maps.LatLng(21.505642,-0.167850),
zoom:5,
};
var map=new google.maps.Map(document.getElementById(“googleMap”),mapProp);
}
</script>

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

</body>
</html>

1 Answers
mmclara clara answered 2 months ago

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/

 

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.