Show whole world by default in Google Maps
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSsTobYBQyhV9ldIQcC3-wX7XpuJ0vI7KcmYdaqgHZ8u6AMeGlEGgWtBK7g72kwghkKaYV57r-TRxaTgo0kB-Yh_J-l186LZcRJZBLVgyt9lnKpsb_re3WeihTSTy9UHITmiWJaf5d2ew/s1600/full_map_small.png)
If you want to use Google Maps in your web site or application and want to have, by default, show the whole world this is the basic page to use.
<!DOCTYPE html> <html> <head> <meta name='viewport' content='initial-scale=1.0, user-scalable=no' /> <style type='text/css'> html { height: 100% } body { height: 100%; margin: 0; padding: 0; } </style> <script type='text/javascript' src='http://maps.googleapis.com/maps/api/js?v=release'> </script> <script type='text/javascript'> function initialize() { var mapOptions = { center: new google.maps.LatLng(0,0), zoom: 1 }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); } </script> </head> <body onload='initialize()'> <div id='map-canvas' style='width: 100%; height: 100%'/> </body> </html>
The result will be the following
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF58XFd7_zSTnBKAIu6WOMygSHOZ5to2xZjOO13T7TTcU-OWn9TaO9lXwdp22PYE6edHA4XX-kwiM1TokJQYIpj7IWWeANmWlgsELwI2ECwNry_zvTROfoK8jBo13IIjMwvDT3O_3KjvM/s1600/full_map.png)
Comments
Post a Comment