jvectormap.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $(function () {
  2. $('#world-map-markers').vectorMap({
  3. map: 'world_mill_en',
  4. normalizeFunction: 'polynomial',
  5. hoverOpacity: 0.7,
  6. hoverColor: false,
  7. backgroundColor: 'transparent',
  8. regionStyle: {
  9. initial: {
  10. fill: 'rgba(210, 214, 222, 1)',
  11. "fill-opacity": 1,
  12. stroke: 'none',
  13. "stroke-width": 0,
  14. "stroke-opacity": 1
  15. },
  16. hover: {
  17. "fill-opacity": 0.7,
  18. cursor: 'pointer'
  19. },
  20. selected: {
  21. fill: 'yellow'
  22. },
  23. selectedHover: {}
  24. },
  25. markerStyle: {
  26. initial: {
  27. fill: '#009688',
  28. stroke: '#000'
  29. }
  30. },
  31. markers: [
  32. { latLng: [41.90, 12.45], name: 'Vatican City' },
  33. { latLng: [43.73, 7.41], name: 'Monaco' },
  34. { latLng: [-0.52, 166.93], name: 'Nauru' },
  35. { latLng: [-8.51, 179.21], name: 'Tuvalu' },
  36. { latLng: [43.93, 12.46], name: 'San Marino' },
  37. { latLng: [47.14, 9.52], name: 'Liechtenstein' },
  38. { latLng: [7.11, 171.06], name: 'Marshall Islands' },
  39. { latLng: [17.3, -62.73], name: 'Saint Kitts and Nevis' },
  40. { latLng: [3.2, 73.22], name: 'Maldives' },
  41. { latLng: [35.88, 14.5], name: 'Malta' },
  42. { latLng: [12.05, -61.75], name: 'Grenada' },
  43. { latLng: [13.16, -61.23], name: 'Saint Vincent and the Grenadines' },
  44. { latLng: [13.16, -59.55], name: 'Barbados' },
  45. { latLng: [17.11, -61.85], name: 'Antigua and Barbuda' },
  46. { latLng: [-4.61, 55.45], name: 'Seychelles' },
  47. { latLng: [7.35, 134.46], name: 'Palau' },
  48. { latLng: [42.5, 1.51], name: 'Andorra' }
  49. ]
  50. });
  51. });