Advertisement
artemsemkin

Untitled

May 10th, 2023 (edited)
890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (typeof jQuery.vectorMap === 'function') {
  2.   var markers = [
  3.     { latLng: [41.9097306, 12.2558141], name: 'Roma' }, { latLng: [55.5807481, 36.8251304], name: 'Moscow' }, { latLng: [33.5320, 35.2939], name: 'Beirut' }, { latLng: [41.049, 28.5658], name: 'Istanbul' }, { latLng: [51.3030, -0.0732], name: 'London' }, { latLng: [34.0308, -118.1437], name: 'Los Angeles' }, { latLng: [31.1000, 121.25], name: 'Shanghai' }, { latLng: [14.3615, 120.5856], name: 'Manila' }, { latLng: [32.0342, 118.4640], name: 'Nanjin' }, { latLng: [6.5554, 79.5052], name: 'Colombo' }, { latLng: [37.5846, 23.4258], name: 'Athens' }, { latLng: [43.5200, 10.1400], name: 'Viareggio' }, { latLng: [52.22, 4.54], name: 'Amsterdam' }, { latLng: [4.72, 7.15], name: 'Onne' }, { latLng: [7.59, 98.20], name: 'Phuket' }, { latLng: [26.12, 50.34], name: 'Bahrain' },        //{latLng: [43.93, 12.46], name: 'Roma, 2 progetti'},
  4.   ];
  5.  
  6.   jQuery('#map').vectorMap({
  7.     map: 'world_mill',
  8.     markers: markers,
  9.     backgroundColor: 'transparent',
  10.     zoomOnScroll: false,
  11.     markerStyle:
  12.     {
  13.       initial: {
  14.         image: 'https://fm-arch-2023.uaoh.eu/wp-content/themes/fmarch-child/images/pin-black.svg',
  15.         width: 20
  16.       }
  17.     },
  18.     markerLabelStyle:
  19.     {
  20.       initial: {
  21.         'font-family': 'Inter',
  22.         'font-size': '16',
  23.         'font-weight': 'bold',
  24.         cursor: 'default',
  25.         fill: 'black'
  26.       },
  27.       hover: {
  28.         cursor: 'pointer'
  29.       }
  30.     },
  31.     regionStyle:
  32.     {
  33.       initial:
  34.       {
  35.         fill: '#ddd',
  36.         "fill-opacity": 1,
  37.         stroke: 'none',
  38.         "stroke-width": 0,
  39.         "stroke-opacity": 1,
  40.         cursor: 'initial'
  41.       },
  42.       hover:
  43.       {
  44.         fill: '#ddd',
  45.         "fill-opacity": 1,
  46.         stroke: 'none',
  47.         "stroke-width": 0,
  48.         "stroke-opacity": 1,
  49.         cursor: 'initial'
  50.       }
  51.     },
  52.     onRegionTipShow: function (e, el, code) {
  53.       e.preventDefault();
  54.       return false;
  55.     }
  56.   });
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement