Google Maps does not work on mobile

Asked

Viewed 216 times

1

I have this HTML code below and it used to work, suddenly the map does not load anymore and I can not solve the problem. Could someone help me? I test on Firefox and Android Google Chrome.

<html> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 
<title>Tz0 Mobile Maps</title>
<style type="text/css"> 
 html { height: 100% } 
body { height: 100%; margin: 0; padding: 0 } 
#map_canvas { width: 100%; height: 100% } 
 .inputx{font-family: Tahoma; font-size: 11px; color: #000000; font-weight: normal;} 
</style>
<script src="http://maps.google.com/maps/api/js?v=3&sensor=false" type="text/javascript"></script>
<script type="text/javascript">
   var map = null;

   function initializeMap() {
       var start = new google.maps.LatLng(-29.693142,-51.460755); 
       var myOptions = { zoom : 5, center : start, mapTypeId : google.maps.MapTypeId.ROADMAP } 
       map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 
   }
</script>
</head>
<body onload="initializeMap()" scroll="no">
   <div id="map_canvas" style="width: 100%; height: 100%"></div>
</body> 
</html>

Works normally when I run on desktop.

  • There is some error in the console?

  • none, the map simply does not load, the page is blank.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.