Adding Google Map To Your Website

It is for static page, dynamic page, website, SEO, performance and other web development discussion
jignesh virani
Posts: 5
Joined: Fri Aug 01, 2014 7:51 am
Contact:

Adding Google Map To Your Website

Postby jignesh virani » Wed Aug 13, 2014 6:02 am

Here One Example Of Adding Google Map To ypur WebSite.

Code: Select all

<!DOCTYPE html>
<html>
  <head>
    <style>
      #map_canvas {
        width: 500px;
        height: 400px;
      }
    </style>
    <script src="https://maps.googleapis.com/maps/api/js"></script>
    <script>
      function initialize() {
        var map_canvas = document.getElementById('map_canvas');
        var map_options = {
          center: new google.maps.LatLng(44.5403, -78.5463),
          zoom: 8,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        var map = new google.maps.Map(map_canvas, map_options)
      }
      google.maps.event.addDomListener(window, 'load', initialize);
    </script>
  </head>
  <body>
    <div id="map_canvas"></div>
  </body>
</html>


if useful please Reply on virani_jigs@yahoo.com


Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 1 guest