Advertisement
Guest User

Map

a guest
Feb 8th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <script src = "http://maps.googleapis.com/maps/api/js"></script>
  2.  
  3. <script>
  4. var myCenter = new google.maps.LatLng(56.0306027, 14.1538347);
  5. var marker;
  6.  
  7. function initialize()
  8. {
  9. var mapProp = {
  10. center: myCenter,
  11. zoom: 10,
  12. mapTypeId: google.maps.MapTypeId.ROADMAP
  13. };
  14.  
  15. var map = new google.maps.Map(document.getElementById("googleMaps"),mapProp);
  16.  
  17. var marker = new google.maps.Marker({
  18. position:myCenter,
  19. animation:google.maps.Animation.BOUNCE,
  20.  
  21. });
  22.  
  23. marker.setMap(map);
  24. }
  25.  
  26. google.maps.event.addDomListener(window, 'load', initialize);
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement