{"version":3,"sources":["contactMap.js"],"names":["_typeof","Symbol","iterator","constructor","prototype","RegExp","join","test","scrollLeft","scrollTop","Math","cos","PI","behavior","TypeError","clientHeight","scrollHeight","clientWidth","scrollWidth","getComputedStyle","parentNode","body","startTime","startX","x","startY","y","method","call","scrollable","requestAnimationFrame","bind","scrollX","pageXOffset","scrollY","pageYOffset","scroll","documentElement","style","__forceSmoothScrollPolyfill__","HTMLElement","Element","navigator","userAgent","scrollTo","scrollBy","elementScroll","scrollIntoView","performance","now","Date","arguments","left","top","SyntaxError","getBoundingClientRect","position","window","document","exports","module","polyfill","addEventListener","mapboxgl","accessToken","Map","container","center","zoom","innerWidth","scrollZoom","enable","dragPan","dragRotate","disable","doubleClickZoom","Popup","closeButton","closeOnClick","features","forEach","properties","iconType","createElement","className","backgroundImage","width","iconSize","height","classList","add","dataset","gtmCategory","gtmAction","gtmLabel","country","setTimeout","Array","from","target","parentElement","children","indexOf","setLngLat","geometry","coordinates","setHTML","description","addTo","Marker","querySelectorAll","remove","querySelector","on","getCanvas","cursor","preventDefault","offsetTop"],"mappings":"AAAA,aAEA,GAAIA,SAA4B,UAAlB,QAAOC,OAAP,EAA2D,QAA3B,QAAOA,QAAOC,QAA9C,CAAsE,WAAe,CAAE,MAAO,SAAa,CAA3G,CAA8G,WAAe,CAAE,MAAO,IAAyB,UAAlB,QAAOD,OAAd,EAAuC,EAAIE,WAAJ,GAAoBF,MAA3D,EAAqE,IAAQA,OAAOG,SAApF,CAAgG,QAAhG,CAA2G,QAAa,CAA5Q,CAIA,CAAC,UAAY,CACZ,aACA,aAAc,CAC0B,MAAO,IAAIC,OAAJ,CAAW,6BAAEC,IAAF,CAAO,GAAP,CAAX,EAAwBC,IAAxB,GAC9C,aAAa,CACb,eAAiB,CAChB,KAAKC,UAAL,GAAqB,KAAKC,SAAL,EACrB,cAAc,CACd,MAAO,KAAM,EAAIC,KAAKC,GAAL,CAASD,KAAKE,EAAL,EAAT,CAAV,CACP,cAAc,CACd,GAAI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SAA1B,EAAqC9B,OAArC,CAA6C,WAAkB,CAC9D,EAAOS,SAAP,CAAiBsB,MAAjB,CAAwB,eAAxB,CACA,CAFD,CADiD,CAKrC,CAAR,EAL6C,EAMhDrD,SAASsD,aAAT,CAAuB,YAAvB,EAA2CvB,SAA3C,CAAqDC,GAArD,CAAyD,eAAzD,CAED,CARD,CAUA,EAAIuB,EAAJ,CAAO,YAAP,CAAqB,QAArB,CAA+B,UAAa,CAE3C,EAAIC,SAAJ,GAAgB5E,KAAhB,CAAsB6E,MAAtB,CAA+B,SAI/B,CAND,CAvdyD,CA+dzDzD,SAASsD,aAAT,CAAuB,gBAAvB,EAAyClD,gBAAzC,CAA0D,OAA1D,CAAmE,WAAiB,CACnF,EAAMsD,cAAN,EADmF,CAEnF3D,OAAOrB,MAAP,CAAc,CACbiB,IAAKK,SAASsD,aAAT,CAAuB,aAAvB,EAAsCK,SAAtC,CAAkD,EAD1C,CAEbjE,KAAM,CAFO,CAGbvC,SAAU,QAHG,CAAd,CAKA,CAPD,CAQA,CAveD,C","file":"contactMap.js","sourcesContent":["'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n// Smooth scroll\n// https://github.com/iamdustan/smoothscroll/blob/master/dist/smoothscroll.min.js\n!function () {\n\t'use strict';\n\tfunction o(o) {\n\t\tvar t = ['MSIE ', 'Trident/', 'Edge/'];return new RegExp(t.join('|')).test(o);\n\t}function t() {\n\t\tfunction t(o, t) {\n\t\t\tthis.scrollLeft = o, this.scrollTop = t;\n\t\t}function r(o) {\n\t\t\treturn .5 * (1 - Math.cos(Math.PI * o));\n\t\t}function i(o) {\n\t\t\tif (null === o || 'object' != (typeof o === 'undefined' ? 'undefined' : _typeof(o)) || void 0 === o.behavior || 'auto' === o.behavior || 'instant' === o.behavior) return !0;if ('object' == (typeof o === 'undefined' ? 'undefined' : _typeof(o)) && 'smooth' === o.behavior) return !1;throw new TypeError('behavior member of ScrollOptions ' + o.behavior + ' is not a valid value for enumeration ScrollBehavior.');\n\t\t}function s(o, t) {\n\t\t\treturn 'Y' === t ? o.clientHeight + h < o.scrollHeight : 'X' === t ? o.clientWidth + h < o.scrollWidth : void 0;\n\t\t}function c(o, t) {\n\t\t\tvar e = l.getComputedStyle(o, null)['overflow' + t];return 'auto' === e || 'scroll' === e;\n\t\t}function n(o) {\n\t\t\tvar t = s(o, 'Y') && c(o, 'Y'),\n\t\t\t l = s(o, 'X') && c(o, 'X');return t || l;\n\t\t}function f(o) {\n\t\t\tvar t;do {\n\t\t\t\tt = (o = o.parentNode) === e.body;\n\t\t\t} while (!1 === t && !1 === n(o));return t = null, o;\n\t\t}function a(o) {\n\t\t\tvar t,\n\t\t\t e,\n\t\t\t i,\n\t\t\t s = (y() - o.startTime) / v;t = r(s = s > 1 ? 1 : s), e = o.startX + (o.x - o.startX) * t, i = o.startY + (o.y - o.startY) * t, o.method.call(o.scrollable, e, i), e === o.x && i === o.y || l.requestAnimationFrame(a.bind(l, o));\n\t\t}function p(o, r, i) {\n\t\t\tvar s,\n\t\t\t c,\n\t\t\t n,\n\t\t\t f,\n\t\t\t p = y();o === e.body ? (s = l, c = l.scrollX || l.pageXOffset, n = l.scrollY || l.pageYOffset, f = u.scroll) : (s = o, c = o.scrollLeft, n = o.scrollTop, f = t), a({ scrollable: s, method: f, startTime: p, startX: c, startY: n, x: r, y: i });\n\t\t}if (!('scrollBehavior' in e.documentElement.style && !0 !== l.__forceSmoothScrollPolyfill__)) {\n\t\t\tvar d = l.HTMLElement || l.Element,\n\t\t\t v = 468,\n\t\t\t h = o(l.navigator.userAgent) ? 1 : 0,\n\t\t\t u = { scroll: l.scroll || l.scrollTo, scrollBy: l.scrollBy, elementScroll: d.prototype.scroll || t, scrollIntoView: d.prototype.scrollIntoView },\n\t\t\t y = l.performance && l.performance.now ? l.performance.now.bind(l.performance) : Date.now;l.scroll = l.scrollTo = function () {\n\t\t\t\tvoid 0 !== arguments[0] && (!0 !== i(arguments[0]) ? p.call(l, e.body, void 0 !== arguments[0].left ? ~~arguments[0].left : l.scrollX || l.pageXOffset, void 0 !== arguments[0].top ? ~~arguments[0].top : l.scrollY || l.pageYOffset) : u.scroll.call(l, void 0 !== arguments[0].left ? arguments[0].left : 'object' != _typeof(arguments[0]) ? arguments[0] : l.scrollX || l.pageXOffset, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : l.scrollY || l.pageYOffset));\n\t\t\t}, l.scrollBy = function () {\n\t\t\t\tvoid 0 !== arguments[0] && (i(arguments[0]) ? u.scrollBy.call(l, void 0 !== arguments[0].left ? arguments[0].left : 'object' != _typeof(arguments[0]) ? arguments[0] : 0, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : 0) : p.call(l, e.body, ~~arguments[0].left + (l.scrollX || l.pageXOffset), ~~arguments[0].top + (l.scrollY || l.pageYOffset)));\n\t\t\t}, d.prototype.scroll = d.prototype.scrollTo = function () {\n\t\t\t\tif (void 0 !== arguments[0]) if (!0 !== i(arguments[0])) {\n\t\t\t\t\tvar o = arguments[0].left,\n\t\t\t\t\t t = arguments[0].top;p.call(this, this, void 0 === o ? this.scrollLeft : ~~o, void 0 === t ? this.scrollTop : ~~t);\n\t\t\t\t} else {\n\t\t\t\t\tif ('number' == typeof arguments[0] && void 0 === arguments[1]) throw new SyntaxError('Value couldn\\'t be converted');u.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left : 'object' != _typeof(arguments[0]) ? ~~arguments[0] : this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top : void 0 !== arguments[1] ? ~~arguments[1] : this.scrollTop);\n\t\t\t\t}\n\t\t\t}, d.prototype.scrollBy = function () {\n\t\t\t\tvoid 0 !== arguments[0] && (!0 !== i(arguments[0]) ? this.scroll({ left: ~~arguments[0].left + this.scrollLeft, top: ~~arguments[0].top + this.scrollTop, behavior: arguments[0].behavior }) : u.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop));\n\t\t\t}, d.prototype.scrollIntoView = function () {\n\t\t\t\tif (!0 !== i(arguments[0])) {\n\t\t\t\t\tvar o = f(this),\n\t\t\t\t\t t = o.getBoundingClientRect(),\n\t\t\t\t\t r = this.getBoundingClientRect();o !== e.body ? (p.call(this, o, o.scrollLeft + r.left - t.left, o.scrollTop + r.top - t.top), 'fixed' !== l.getComputedStyle(o).position && l.scrollBy({ left: t.left, top: t.top, behavior: 'smooth' })) : l.scrollBy({ left: r.left, top: r.top, behavior: 'smooth' });\n\t\t\t\t} else u.scrollIntoView.call(this, void 0 === arguments[0] || arguments[0]);\n\t\t\t};\n\t\t}\n\t}var l = window,\n\t e = document;'object' == (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) ? module.exports = { polyfill: t } : t();\n}();\n\n// Contact Map\ndocument.addEventListener('DOMContentLoaded', function () {\n\tvar getMapZoom = function getMapZoom() {\n\t\tif (window.innerWidth < 800) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (window.innerWidth < 1400) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn 2;\n\t};\n\n\tmapboxgl.accessToken = 'pk.eyJ1IjoiY3JhYXNjaCIsImEiOiJjajZkemZ6OHgyN3VtMnhyMDZtOGdoODV6In0.Ofr2UDBXCWQwvO4dDjPCqQ';\n\tvar map = new mapboxgl.Map({\n\t\tcontainer: 'map',\n\t\tstyle: 'mapbox://styles/craasch/cj6fc7kmy2d262spfzx2qav6m',\n\t\tcenter: [0, 15],\n\t\tzoom: getMapZoom()\n\t});\n\n\tvar setControls = function setControls() {\n\t\tif (window.innerWidth < 1024) {\n\t\t\tmap.scrollZoom.enable();\n\t\t\tmap.dragPan.enable();\n\t\t\tmap.dragRotate.enable();\n\t\t} else {\n\t\t\tmap.scrollZoom.disable();\n\t\t\tmap.dragPan.disable();\n\t\t\tmap.dragRotate.disable();\n\t\t\tmap.doubleClickZoom.disable();\n\t\t}\n\t};\n\n\tsetControls();\n\n\twindow.addEventListener('resize', function () {\n\t\tsetControls();\n\t});\n\n\tvar geojson = {\n\t\t'type': 'FeatureCollection',\n\t\t'features': [{\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'USA - World Headquarters',\n\t\t\t\t'iconSize': [28, 40],\n\t\t\t\t'iconType': 'red',\n\t\t\t\t'country': 'United States',\n\t\t\t\t'description': '\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tStatic Control Components, Inc.\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t3010 Lee Avenue, PO Box 152
\\n\\t\\t\\t\\t\\t\\t\\tSanford, NC 27331
\\n\\t\\t\\t\\t\\t\\t\\tTel: 800-488-2426
\\n\\t\\t\\t\\t\\t\\t\\tFax: 800-488-2452
\\n\\t\\t\\t\\t\\t\\t\\tEmail: info@scc-inc.com\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tInternational:
\\n\\t\\t\\t\\t\\t\\tTel: +1-919-774-3808
\\n\\t\\t\\t\\t\\t\\tFax: +1-919-774-1287'\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-79.1459015, 35.4473728]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Asian Headquarters',\n\t\t\t\t'iconSize': [21, 30],\n\t\t\t\t'iconType': 'red',\n\t\t\t\t'country': 'China',\n\t\t\t\t'description': '\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tStatic Control Components (Hong Kong) Limited\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tUnit 2812, Level 28 
\\n\\t\\t\\t\\t\\t\\t\\tTower II, Metroplaza 
\\n\\t\\t\\t\\t\\t\\t\\tNo. 223 Hing Fong Road, Kwai Fong 
\\n\\t\\t\\t\\t\\t\\t\\tNew Territories, Hong Kong 
\\n\\t\\t\\t\\t\\t\\t\\tTel: +852 2427 6011 
\\n\\t\\t\\t\\t\\t\\t\\tFax: +852 2427 6677 
\\n\\t\\t\\t\\t\\t\\t\\tEmail: info@scchongkong.hk\\n\\t\\t\\t\\t\\t\\t
'\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [114.128240, 22.354357]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'European Headquarters',\n\t\t\t\t'iconSize': [21, 30],\n\t\t\t\t'iconType': 'red',\n\t\t\t\t'country': 'United Kingdom',\n\t\t\t\t'description': '\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tStatic Control Components (Europe) Limited\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tSales Office/Warehouse
\\n\\t\\t\\t\\t\\t\\t\\tUnit 30, Worton Drive 
\\n\\t\\t\\t\\t\\t\\t\\tReading, Berkshire RG2 0TG 
\\n\\t\\t\\t\\t\\t\\t\\tUnited Kingdom 
\\n\\t\\t\\t\\t\\t\\t\\tTel: +44 118 923 8800 
\\n\\t\\t\\t\\t\\t\\t\\tFax: +44 118 923 8811 
\\n\\t\\t\\t\\t\\t\\t\\tEmail: info@scceurope.co.uk\\n\\t\\t\\t\\t\\t\\t
'\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-0.975654, 51.420722]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'South Africa Headquarters',\n\t\t\t\t'iconSize': [21, 30],\n\t\t\t\t'iconType': 'red',\n\t\t\t\t'country': 'South Africa',\n\t\t\t\t'description': '\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tSouth Africa Headquarters\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tThe Warehouse, Unit 1 & 2
\\n\\t\\t\\t\\t\\t\\t\\tCorner Deodar Road & Constantia Ave
\\n\\t\\t\\t\\t\\t\\t\\tPomona 1619
\\n\\t\\t\\t\\t\\t\\t\\tPO Box 7288
\\n\\t\\t\\t\\t\\t\\t\\tBonaero Park 1622 
\\n\\t\\t\\t\\t\\t\\t\\tSouth Africa 
\\n\\t\\t\\t\\t\\t\\t\\tTel: +27 11 570 2300 
\\n\\t\\t\\t\\t\\t\\t\\tFax : +27 11 973 2130 
\\n\\t\\t\\t\\t\\t\\t\\tEmail:  info@sccafrica.co.za\\n\\t\\t\\t\\t\\t\\t
'\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [28.250720, -26.124893]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Canada',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Canada',\n\t\t\t\t'description': '\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tSC Components Canada, ULC\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tSales Office/Warehouse
\\n\\t\\t\\t\\t\\t\\t\\t4055 Sladeview Crescent, Unit 4
\\n\\t\\t\\t\\t\\t\\t\\tMississauga Ontario L5L 5Y1
\\n\\t\\t\\t\\t\\t\\t\\tPhone: +1 905-607-6400
\\n\\t\\t\\t\\t\\t\\t\\tToll-Free: +1-855-275-5448 
\\n\\t\\t\\t\\t\\t\\t\\tFax: +1 905-824-6688
\\n\\t\\t\\t\\t\\t\\t\\tEmail: jowen@scc-inc.com\\n\\t\\t\\t\\t\\t\\t
'\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-79.716514, 43.526492]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Germany',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Germany',\n\t\t\t\t'description': '
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tSales Office & Distribution Center\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tCarl-Zeiss-Str. 3
\\n\\t\\t\\t\\t\\t\\t\\t60388 Frankfurt
\\n\\t\\t\\t\\t\\t\\t\\tGermany
\\n\\t\\t\\t\\t\\t\\t\\tTel: +49 (0) 6109 5092400
\\n\\t\\t\\t\\t\\t\\t\\tFax: +49 (0) 6109 5092411\\n\\t\\t\\t\\t\\t\\t
'\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [8.74621, 50.141930]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'India',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'India',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [73.762541, 18.555914]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Lagos, Nigeria',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Lagos, Nigeria',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [3.379206, 6.524379]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Italy',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Italy',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [9.212872, 39.235712]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Kenya',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Kenya',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [36.821946, -1.292066]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Moscow, Russia',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Moscow, Russia',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [37.617300, 55.755826]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Cape Town, S. Africa',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Cape Town, S. Africa',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [18.424055, -33.924869]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Philippines',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Philippines',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [120.984219, 14.599512]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Indonesia',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Indonesia',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [106.865039, -6.175110]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Nigeria',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Nigeria',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [3.352523, 6.554027]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Poland',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Poland',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [20.090059, 49.951999]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Colombia',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Colombia',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-74.072092, 4.710989]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'South Africa',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'South Africa',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [18.534443, -33.865968]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Thailand',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Thailand',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [100.501765, 13.756331]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Spain',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Spain',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [2.130294, 41.336454]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Miami, FL',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Miami, FL',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-80.191790, 25.761680]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Atlanta Georgia',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Atlanta Georgia',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-84.387982, 33.748995]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Zhuhai, China',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'China',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [113.576677, 22.270978]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'San Antonio Texas',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'USA',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-98.493628, 29.424122]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Taiwan',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Taiwan',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [120.682996, 24.134012]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Turkey',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Turkey',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [29.008166, 41.071898]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'United Arab Emirates',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'United Arab Emirates',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [55.271419, 24.187056]\n\t\t\t}\n\t\t}, {\n\t\t\t'type': 'Feature',\n\t\t\t'properties': {\n\t\t\t\t'location': 'Sao Paulo Brazil',\n\t\t\t\t'iconSize': [14, 20],\n\t\t\t\t'iconType': 'blue',\n\t\t\t\t'country': 'Brazil',\n\t\t\t\t'description': ''\n\t\t\t},\n\t\t\t'geometry': {\n\t\t\t\t'type': 'Point',\n\t\t\t\t'coordinates': [-46.631727, -23.565569]\n\t\t\t}\n\t\t}]\n\t};\n\n\tvar markerCount = 1;\n\n\tvar popup = new mapboxgl.Popup({\n\t\tcloseButton: false,\n\t\tcloseOnClick: false\n\t});\n\n\tgeojson.features.forEach(function (marker) {\n\t\tvar pinImage = function () {\n\t\t\tif (marker.properties.iconType == 'red') {\n\t\t\t\treturn '/StaticControl/Images/Site/pin-red.png';\n\t\t\t}\n\t\t\tif (marker.properties.iconType == 'blue') {\n\t\t\t\treturn '/StaticControl/Images/Site/pin-blue.png';\n\t\t\t}\n\t\t\treturn '/StaticControl/Images/Site/pin-blue.png';\n\t\t}();\n\n\t\tvar markerElement = document.createElement('div');\n\t\tmarkerElement.className = 'marker';\n\t\tmarkerElement.style.backgroundImage = 'url(' + pinImage + ')';\n\t\tmarkerElement.style.width = marker.properties.iconSize[0] + 'px';\n\t\tmarkerElement.style.height = marker.properties.iconSize[1] + 'px';\n\t\tmarkerElement.classList.add('marker-' + markerCount);\n\t\tmarkerElement.dataset.gtmCategory = 'Contact Us';\n\t\tmarkerElement.dataset.gtmAction = 'marker click';\n\t\tmarkerElement.dataset.gtmLabel = marker.properties.country;\n\t\tsetTimeout(function () {\n\t\t\tmarkerElement.dataset.iconType = marker.properties.iconType;\n\t\t}, 100 * markerCount);\n\n\t\tif (marker.properties.iconType == 'red') {\n\t\t\tmarkerElement.addEventListener('mouseover', function (clickedMarker) {\n\t\t\t\tvar indexOfTarget = Array.from(clickedMarker.target.parentElement.children).indexOf(clickedMarker.target);\n\t\t\t\tselectMapArea(indexOfTarget);\n\n\t\t\t\tvar getHtml = function getHtml() {\n\t\t\t\t\tif (geojson.features[indexOfTarget - 1].properties.iconType == 'red') {\n\t\t\t\t\t\treturn geojson.features[indexOfTarget - 1].properties.description;\n\t\t\t\t\t} else if (geojson.features[indexOfTarget - 1].properties.iconType == 'blue') {\n\t\t\t\t\t\treturn '
' + geojson.features[indexOfTarget - 1].properties.country + '
';\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tpopup.setLngLat(geojson.features[indexOfTarget - 1].geometry.coordinates).setHTML(getHtml()).addTo(map);\n\t\t\t});\n\t\t}\n\n\t\t// add marker to map\n\t\tnew mapboxgl.Marker(markerElement).setLngLat(marker.geometry.coordinates).addTo(map);\n\n\t\tmarkerCount++;\n\t});\n\n\tvar selectMapArea = function selectMapArea(index) {\n\t\tdocument.querySelectorAll('.marker').forEach(function (marker) {\n\t\t\tmarker.classList.remove('marker-active');\n\t\t});\n\n\t\tif (index > 0) {\n\t\t\tdocument.querySelector('.marker-' + index).classList.add('marker-active');\n\t\t}\n\t};\n\n\tmap.on('mouseenter', 'places', function (e) {\n\t\t// Change the cursor style as a UI indicator.\n\t\tmap.getCanvas().style.cursor = 'pointer';\n\n\t\t// Populate the popup and set its coordinates\n\t\t// based on the feature found.\n\t});\n\n\tdocument.querySelector('#contactButton').addEventListener('click', function (event) {\n\t\tevent.preventDefault();\n\t\twindow.scroll({\n\t\t\ttop: document.querySelector('.contactMap').offsetTop - 80,\n\t\t\tleft: 0,\n\t\t\tbehavior: 'smooth'\n\t\t});\n\t});\n});"]}