گولوگ ماپ تیوتریل

谷歌地图 API

本教程为您讲解 Google 地图 APIApplication Programming Interface,应用程序编程接口)。

API 是一套可用于构建软件应用程序的方法和工具。

ਐੱਚਟੀਐੱਮਐੱਲ ਵਿੱਚ ਗੂਗਲ ਮੈਪ

ਇਹ ਉਦਾਹਰਣ ਐੱਚਟੀਐੱਮਐੱਲ ਵਿੱਚ ਗੂਗਲ ਮੈਪ ਬਣਾਉਂਦਾ ਹੈ:

ਉਦਾਹਰਣ

<!DOCTYPE html>
<html>
<body>
<h1>ਮੇਰਾ ਪਹਿਲਾ ਗੂਗਲ ਮੈਪ</h1>
<div id="googleMap" style="width:100%;height:400px;"></div>
<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="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap"></script>
</body>
</html>