Guest User

Untitled

a guest
Jul 26th, 2013
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var directionDisplay;
  2. var directionsService = new google.maps.DirectionsService();
  3.  
  4. function initializeMaps() {
  5. var latlng = new google.maps.LatLng(51.764696,5.526042);
  6. directionsDisplay = new google.maps.DirectionsRenderer();
  7. var myOptions = {
  8. zoom: 16,
  9. center: latlng,
  10. mapTypeId: google.maps.MapTypeId.ROADMAP,
  11. mapTypeControl: false
  12. };
  13. var map = new google.maps.Map(document.getElementById("google_maps"),myOptions);
  14.  
  15. var image = new google.maps.MarkerImage('marker.png',
  16. new google.maps.Size(65, 124),
  17. new google.maps.Point(0,0),
  18. new google.maps.Point(56, 122)
  19. );
  20.  
  21. var shadow = new google.maps.MarkerImage('marker_shadow.png',
  22. new google.maps.Size(96, 59),
  23. new google.maps.Point(0,0),
  24. new google.maps.Point(32, 59)
  25. );
  26.  
  27. var customMarker = new google.maps.Marker({
  28. position: latlng,
  29. map: map,
  30. shadow: shadow,
  31. title:"Carlos Gallupa HQ",
  32. icon: image
  33. });
  34. }
RAW Paste Data