vector-maps.init.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /******/ (function() { // webpackBootstrap
  2. var __webpack_exports__ = {};
  3. /*!************************************************!*\
  4. !*** ./resources/js/pages/vector-maps.init.js ***!
  5. \************************************************/
  6. /*
  7. Template Name: Skote - Admin & Dashboard Template
  8. Author: Themesbrand
  9. Website: https://themesbrand.com/
  10. Contact: themesbrand@gmail.com
  11. File: Vector Maps init Js File
  12. */
  13. !function ($) {
  14. "use strict";
  15. var VectorMap = function VectorMap() {};
  16. VectorMap.prototype.init = function () {
  17. //various examples
  18. $('#world-map-markers').vectorMap({
  19. map: 'world_mill_en',
  20. normalizeFunction: 'polynomial',
  21. hoverOpacity: 0.7,
  22. hoverColor: false,
  23. regionStyle: {
  24. initial: {
  25. fill: '#d4dadd'
  26. }
  27. },
  28. markerStyle: {
  29. initial: {
  30. r: 9,
  31. 'fill': '#556ee6',
  32. 'fill-opacity': 0.9,
  33. 'stroke': '#fff',
  34. 'stroke-width': 7,
  35. 'stroke-opacity': 0.4
  36. },
  37. hover: {
  38. 'stroke': '#fff',
  39. 'fill-opacity': 1,
  40. 'stroke-width': 1.5
  41. }
  42. },
  43. backgroundColor: 'transparent',
  44. markers: [{
  45. latLng: [41.90, 12.45],
  46. name: 'Vatican City'
  47. }, {
  48. latLng: [43.73, 7.41],
  49. name: 'Monaco'
  50. }, {
  51. latLng: [-0.52, 166.93],
  52. name: 'Nauru'
  53. }, {
  54. latLng: [-8.51, 179.21],
  55. name: 'Tuvalu'
  56. }, {
  57. latLng: [43.93, 12.46],
  58. name: 'San Marino'
  59. }, {
  60. latLng: [47.14, 9.52],
  61. name: 'Liechtenstein'
  62. }, {
  63. latLng: [7.11, 171.06],
  64. name: 'Marshall Islands'
  65. }, {
  66. latLng: [17.3, -62.73],
  67. name: 'Saint Kitts and Nevis'
  68. }, {
  69. latLng: [3.2, 73.22],
  70. name: 'Maldives'
  71. }, {
  72. latLng: [35.88, 14.5],
  73. name: 'Malta'
  74. }, {
  75. latLng: [12.05, -61.75],
  76. name: 'Grenada'
  77. }, {
  78. latLng: [13.16, -61.23],
  79. name: 'Saint Vincent and the Grenadines'
  80. }, {
  81. latLng: [13.16, -59.55],
  82. name: 'Barbados'
  83. }, {
  84. latLng: [17.11, -61.85],
  85. name: 'Antigua and Barbuda'
  86. }, {
  87. latLng: [-4.61, 55.45],
  88. name: 'Seychelles'
  89. }, {
  90. latLng: [7.35, 134.46],
  91. name: 'Palau'
  92. }, {
  93. latLng: [42.5, 1.51],
  94. name: 'Andorra'
  95. }, {
  96. latLng: [14.01, -60.98],
  97. name: 'Saint Lucia'
  98. }, {
  99. latLng: [6.91, 158.18],
  100. name: 'Federated States of Micronesia'
  101. }, {
  102. latLng: [1.3, 103.8],
  103. name: 'Singapore'
  104. }, {
  105. latLng: [0.33, 6.73],
  106. name: 'São Tomé and Príncipe'
  107. }]
  108. });
  109. $('#usa-vectormap').vectorMap({
  110. map: 'us_merc_en',
  111. backgroundColor: 'transparent',
  112. regionStyle: {
  113. initial: {
  114. fill: '#556ee6'
  115. }
  116. }
  117. });
  118. $('#india-vectormap').vectorMap({
  119. map: 'in_mill_en',
  120. backgroundColor: 'transparent',
  121. regionStyle: {
  122. initial: {
  123. fill: '#556ee6'
  124. }
  125. }
  126. });
  127. $('#australia-vectormap').vectorMap({
  128. map: 'au_mill_en',
  129. backgroundColor: 'transparent',
  130. regionStyle: {
  131. initial: {
  132. fill: '#556ee6'
  133. }
  134. }
  135. });
  136. $('#chicago-vectormap').vectorMap({
  137. map: 'us-il-chicago_mill_en',
  138. backgroundColor: 'transparent',
  139. regionStyle: {
  140. initial: {
  141. fill: '#556ee6'
  142. }
  143. }
  144. });
  145. $('#uk-vectormap').vectorMap({
  146. map: 'uk_mill_en',
  147. backgroundColor: 'transparent',
  148. regionStyle: {
  149. initial: {
  150. fill: '#556ee6'
  151. }
  152. }
  153. });
  154. $('#canada-vectormap').vectorMap({
  155. map: 'ca_lcc_en',
  156. backgroundColor: 'transparent',
  157. regionStyle: {
  158. initial: {
  159. fill: '#556ee6'
  160. }
  161. }
  162. });
  163. }, //init
  164. $.VectorMap = new VectorMap(), $.VectorMap.Constructor = VectorMap;
  165. }(window.jQuery), //initializing
  166. function ($) {
  167. "use strict";
  168. $.VectorMap.init();
  169. }(window.jQuery);
  170. /******/ })()
  171. ;