Answers for "import google map html"

3

google map html

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

<script src="[Google API link goes here]"></script>
Posted by: Guest on February-25-2021
0

import google maps libraries html

You will need to generate an API key or leave blank during development

<script 
	src="https://maps.googleapis.com/maps/api/js?libraries=places&key=YOUR_API_KEY">
</script>

Get a key following this intructions:
https://developers.google.com/maps/documentation/javascript/get-api-key

Quick link to Google Cloud Platform Console:
https://console.cloud.google.com/
Posted by: Guest on November-25-2020

Browse Popular Code Answers by Language