javascript - google maps api mobile rendering -
i trying open simple map on website on mobile ios device getting google map distorted. code straight google maps api documentation.
i use content delivery system enhance speed, have disables cache without luck. local issues or else going on mobile devices??
<html> <head> <!-- stylesheet contains specific styles displaying map on page. replace own styles described in documentation: https://developers.google.com/maps/documentation/javascript/tutorial --> <link rel="stylesheet" href="/maps/documentation/javascript/demos/demos.css"> </head> <body> <div id="map"></div> <script> function initmap() { // create map object , specify dom element display. var map = new google.maps.map(document.getelementbyid('map'), { center: {lat: -34.397, lng: 150.644}, zoom: 8 }); } </script> <script src="https://maps.googleapis.com/maps/api/js?key=''&callback=initmap" async defer></script> </body> </html>
Comments
Post a Comment