salmancreation

Google map marker html

Nov 23rd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         <script src="https://maps.googleapis.com/maps/api/js"></script>
  2.         <script type="text/javascript">
  3.    / Google Map js /
  4.    function initialize() {
  5.      var mapOptions = {
  6.     zoom: 15,
  7.     scrollwheel: false,
  8.     center: new google.maps.LatLng(51.5255069, -0.0836207)
  9.      };
  10.  
  11.      var map = new google.maps.Map(document.getElementById('googleMap'),
  12.       mapOptions);
  13.  
  14.      var marker = new google.maps.Marker({
  15.     position: map.getCenter(),
  16.     animation:google.maps,
  17.     animation:google.maps.Animation.BOUNCE,
  18.     icon: 'img/map-marker.png',
  19.     map: map
  20.      });
  21.  
  22.    }
  23.    google.maps.event.addDomListener(window, 'load', initialize);
  24.   </script>
Add Comment
Please, Sign In to add comment