map-point.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define("/pages/map-point", [], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory();
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory();
  11. global.pagesMapPoint = mod.exports;
  12. }
  13. })(this, function () {
  14. "use strict";
  15. var LocsA = [{
  16. lat: 45.9,
  17. lon: 10.9,
  18. title: 'Title A1',
  19. html: '<h3>Content A1</h3>',
  20. icon: 'http://maps.google.com/mapfiles/markerA.png',
  21. animation: google.maps.Animation.DROP
  22. }, {
  23. lat: 44.8,
  24. lon: 1.7,
  25. title: 'Title B1',
  26. html: '<h3>Content B1</h3>',
  27. icon: 'http://maps.google.com/mapfiles/markerB.png',
  28. show_infowindow: false
  29. }, {
  30. lat: 51.5,
  31. lon: -1.1,
  32. title: 'Title C1',
  33. html: ['<h3>Content C1</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  34. zoom: 8,
  35. icon: 'http://maps.google.com/mapfiles/markerC.png'
  36. }];
  37. var LocsAv2 = [{
  38. lat: 45.9,
  39. lon: 10.9,
  40. title: 'Zone A1',
  41. html: '<h3>Content A1</h3>',
  42. type: 'circle',
  43. circle_options: {
  44. radius: 200000
  45. },
  46. draggable: true
  47. }, {
  48. lat: 44.8,
  49. lon: 1.7,
  50. title: 'Draggable',
  51. html: '<h3>Content B1</h3>',
  52. show_infowindow: false,
  53. visible: true,
  54. draggable: true
  55. }, {
  56. lat: 51.5,
  57. lon: -1.1,
  58. title: 'Title C1',
  59. html: ['<h3>Content C1</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  60. zoom: 8,
  61. visible: true
  62. }];
  63. var LocsB = [{
  64. lat: 52.1,
  65. lon: 11.3,
  66. title: 'Title A2',
  67. html: ['<h3>Content A2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  68. zoom: 8
  69. }, {
  70. lat: 51.2,
  71. lon: 22.2,
  72. title: 'Title B2',
  73. html: ['<h3>Content B2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  74. zoom: 8
  75. }, {
  76. lat: 49.4,
  77. lon: 35.9,
  78. title: 'Title C2',
  79. html: ['<h3>Content C2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  80. zoom: 4
  81. }, {
  82. lat: 47.8,
  83. lon: 15.6,
  84. title: 'Title D2',
  85. html: ['<h3>Content D2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  86. zoom: 6
  87. }];
  88. var LocsBv2 = [{
  89. lat: 52.1,
  90. lon: 11.3,
  91. title: 'Title A2',
  92. html: ['<h3>Content A2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  93. zoom: 8
  94. }, {
  95. lat: 51.2,
  96. lon: 22.2,
  97. title: 'Title B2',
  98. html: ['<h3>Content B2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  99. zoom: 8,
  100. type: 'circle',
  101. circle_options: {
  102. radius: 100000
  103. }
  104. }, {
  105. lat: 49.4,
  106. lon: 35.9,
  107. title: 'Title C2',
  108. html: ['<h3>Content C2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  109. zoom: 4
  110. }, {
  111. lat: 47.8,
  112. lon: 15.6,
  113. title: 'Title D2',
  114. html: ['<h3>Content D2</h3>', '<p>Lorem Ipsum..</p>'].join(''),
  115. zoom: 6
  116. }];
  117. var LocsAB = LocsA.concat(LocsB);
  118. });