Google-Maps-Tutorials
- </html> D3.js
- Vorherige Seite Nächste Seite
Google Maps API
Diese Anleitung erklärt Google Maps API(Application PProgramming IInterface, die Anwendungspflege-API (Application Programming Interface, API).
API ist eine Sammlung von Methoden und Werkzeugen, die zur Erstellung von Softwareanwendungen verwendet werden können.
Google-Karte in HTML
Dieses Beispiel erstellt eine Google-Karte in HTML:
Beispiel
<!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>