javascript - Google Maps API: TypeError: a is undefined -


i have searched problem on web , none of them seem give me resolution. have simple script display map of south africa.

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> <title>map test</title> <script language="javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true"></script> <style> #map-canvas {     height: 300px;     width: 980px;     margin: 0;     padding: 0;     margin-top: 10px; } </style> </head> <body> <div id="map-canvas" class="map_canvas"></div> <script type="text/javascript">     function initialize()     {         var mapoptions = {             center: new google.maps.latlng(-29.09958,26.18434),             zoom: 5,             maptypecontroloptions: {                 position: google.maps.controlposition.top_left             }         };         map = new google.maps.map(document.getelementbyid('map-canvas'),mapoptions);     }     google.maps.event.adddomlistener(window, 'load', initialize); </script> </body> </html> 

but keep on getting same error on , over. have tried on different server.

enter image description here

please help

i've seen error in last days, there seems issue experimental api-version.

load release-version instead(basically should load release-version in production)

<script language="javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true&v=3"></script> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -