Advertisement
Guest User

Maps1

a guest
Nov 6th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function () {
  2.  
  3.     var containerId = '#main';
  4.  
  5.     //create map centre point
  6.  
  7.     var latitude = 50.007656;
  8.  
  9.     var longitude = 19.95276;
  10.  
  11.     var startPoint = new google.maps.LatLng(latitude, longitude);
  12.  
  13.     //create default map options
  14.  
  15.     var mapOptions = {
  16.  
  17.         zoom: 8,
  18.  
  19.         center: startPoint,
  20.  
  21.         mapTypeId: google.maps.MapTypeId.ROADMAP
  22.  
  23.     };
  24.  
  25.     //create a map object
  26.  
  27.     var map = new google.maps.Map($(containerId)[0], mapOptions);
  28.  
  29. });
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement