いつも私はvar directionsService = new google.maps.DirectionsService();
をコンソールに作っていますadmin.php:26 Uncaught ReferenceError:googleは定義されていません。誰かが私にこれを解決するのを助けることができる?admin.php:26 Uncaught ReferenceError:googleが定義されていません
<script>
var directionsService = new google.maps.DirectionsService();
var directionsDisplay;
function loadScript(){
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.googleapis.com/maps/api/js?key=AIzaSyA6FWEcLI-sIDj2ViI02kjL3KV-njatBro&sensor=false&callback=initMap";
document.body.appendChild(script);
}
window.onload = loadScript;
....
</script>
のplsはあなたのhtml –
を提供し、私はそれが動作しません。申し訳ありません@AnikIslamAbhi –