Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. var locations = [
  2. ['Bondi Beach', -33.890542, 151.274856, 4],
  3. ['Coogee Beach', -33.923036, 151.259052, 5],
  4. ['Cronulla Beach', -34.028249, 151.157507, 3],
  5. ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
  6. ['Maroubra Beach', -33.950198, 151.259302, 1]
  7. ];
  8.  
  9. //<![CDATA[
  10. $(function(){
  11. jQuery(document).ready(function () {
  12. var locations = [
  13. ['Bondi Beach', -33.890542, 151.274856, 4],
  14. ['Coogee Beach', -33.923036, 151.259052, 5],
  15. ['Cronulla Beach', -34.028249, 151.157507, 3],
  16. ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
  17. ['Maroubra Beach', -33.950198, 151.259302, 1]
  18. ];
  19. var map;
  20. var centerPosition = new google.maps.LatLng(35.335293,161.323242, 16.050432,33.815918);
  21. var style =
  22. [{"elementType": "labels","stylers": [{ "visibility": "off" }]},
  23. {"featureType": "landscape","stylers": [{ "color": "#222222" }]},
  24. {"featureType": "road","stylers": [{ "color": "#000000" }]},
  25. {"featureType": "poi","stylers": [{ "visibility": "off" }]},
  26. {"featureType": "water","stylers": [{ "color": "#000000" }]},
  27. {"featureType": "administrative.country","elementType": "geometry","stylers": [
  28. { "visibility": "on" }, { "color": "#2c2c2c" }]}]
  29. var options = {
  30. zoom: 2,
  31. center: centerPosition,
  32. mapTypeControl: false,
  33. scaleControl: false,
  34. zoomControl: false,
  35. navigationControl: false,
  36. streetViewControl: false,
  37. };
  38. map = new google.maps.Map($('#map')[0], options);
  39. map.setOptions({
  40. styles: style
  41. });
  42. var image = {
  43. url: 'http://icons.iconarchive.com/icons/glyphish/glyphish/16/07-map-marker-icon.png',
  44. origin: new google.maps.Point(0, 0),
  45. anchor: new google.maps.Point(12, 59)
  46. };
  47. var shadow = {
  48. url: 'https://dl.dropboxusercontent.com/u/814783/fiddle/shadow.png',
  49. origin: new google.maps.Point(0, 0),
  50. anchor: new google.maps.Point(-2, 36)
  51. };
  52. var marker = new google.maps.Marker({
  53. position: centerPosition,
  54. map: map,
  55. icon: image,
  56. shadow: shadow
  57. });
  58. });
  59. });//]]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement