{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js??ref--14-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/mixins/DynamicMarkerMixin.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/mixins/DynamicMarkerMixin.js","mtime":1702249671872},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMub2JqZWN0LnRvLXN0cmluZy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL3dlYi5kb20tY29sbGVjdGlvbnMuZm9yLWVhY2guanMiOwppbXBvcnQgbWFya2VyWm9vbUxldmVscyBmcm9tICIuLi9jb21wb25lbnRzL21hcmtlclpvb21MZXZlbHNIYXJkQ29kZWQuanMiOwppbXBvcnQgc3RvcmUgZnJvbSAiLi4vc3RvcmUiOwoKLyoKKiBGdW5jdGlvbiB0byBjaGVjayBtYXJrZXJzIHZpc2liaWxpdHkgYXQgdGhlIGdpdmVuIHpvb20gbGV2ZWwuCiogSSBoYXZlIG1vZGlmaWVkIGl0IHRvIG1ha2Ugc3VyZSB0aGUgbWFya2VyIGlzIGRpc3BsYXllZAoqIGl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ZmxhdG1hcE1hcmtlclpvb21VcGRhdGUodHJ1ZSwgZmxhdG1hcEltcCk7CiAgICAgIH0KICAgIH0KICB9Cn07"},{"version":3,"names":["markerZoomLevels","store","checkMarkersAtZoomLevel","flatmapImp","markers","zoomLevel","forEach","id","foundInArray","i","length","showAtZoom","addMarker","className","methods","flatmapPanZoomCallback","payload","mouseHovered","result","paneIndex","entry","eventType","type","flatmapMarkerZoomUpdate","undefined","$emit","force","flatmap","flatmapReady","getFlatmapImp","currentZoom","getZoom","clearMarkers","state","settings","restoreFeaturedMarkers","flatmapReadyForMarkerUpdates","enablePanZoomEvents","mapImp"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/mixins/DynamicMarkerMixin.js"],"sourcesContent":["\nimport markerZoomLevels from \"../components/markerZoomLevelsHardCoded.js\";\nimport store from \"../store\";\n\n\n/*\n* Function to check markers visibility at the given zoom level.\n* I have modified it to make sure the marker is displayed\n* if the uberon is not present in the hardcoded zoom-level list.\n*/\nconst checkMarkersAtZoomLevel = (flatmapImp, markers, zoomLevel) => {\n if (markers) {\n markers.forEach(id => {\n let foundInArray = false;\n // First check if uberon is in the list, check for zoom level\n // if true. Note: markerZoomLevels is imported.\n for (let i = 0; i < markerZoomLevels.length; i++) {\n if (markerZoomLevels[i].id === id) {\n foundInArray = true;\n if (zoomLevel >= markerZoomLevels[i].showAtZoom) {\n flatmapImp.addMarker(id, {className: \"standard-marker\"});\n }\n break;\n }\n }\n // Did not match, add it regardless so we do not lose any\n // markers.\n if (!foundInArray) {\n flatmapImp.addMarker(id, {className: \"standard-marker\"});\n }\n });\n }\n};\n \n/* eslint-disable no-alert, no-console */\nexport default {\n methods: {\n flatmapPanZoomCallback: function (payload) {\n if (this.mouseHovered) {\n const result = {\n paneIndex: this.entry.id,\n eventType: \"panZoom\",\n payload: payload,\n type: this.entry.type,\n };\n this.flatmapMarkerZoomUpdate(false, undefined);\n this.$emit(\"resource-selected\", result);\n }\n },\n /**\n * Function used for updating the flatmap markers.\n * It will only update the markers if zoom level has changed or\n * the force flag is true.\n */\n flatmapMarkerZoomUpdate(force, flatmap) {\n if (!this.flatmapReady) return;\n\n let flatmapImp = flatmap;\n if (!flatmapImp)\n flatmapImp = this.getFlatmapImp();\n\n if (flatmapImp) {\n let currentZoom = flatmapImp.getZoom()[\"zoom\"];\n if (force || this.zoomLevel !== currentZoom) {\n this.zoomLevel = currentZoom;\n flatmapImp.clearMarkers();\n let markers = store.state.settings.markers;\n checkMarkersAtZoomLevel(flatmapImp, markers, this.zoomLevel);\n if (this.entry.type === \"MultiFlatmap\") {\n this.restoreFeaturedMarkers(flatmapImp);\n }\n }\n }\n },\n flatmapReadyForMarkerUpdates: function (flatmap) {\n if (flatmap) {\n flatmap.enablePanZoomEvents(true); // Use zoom events for dynamic markers\n this.flatmapReady = true;\n const flatmapImp = flatmap.mapImp;\n this.flatmapMarkerZoomUpdate(true, flatmapImp);\n }\n },\n }\n}\n"],"mappings":";;AACA,OAAOA,gBAAgB,MAAM,4CAA4C;AACzE,OAAOC,KAAK,MAAM,UAAU;;AAG5B;AACA;AACA;AACA;AACA;AACA,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,UAAU,EAAEC,OAAO,EAAEC,SAAS,EAAK;EAClE,IAAID,OAAO,EAAE;IACXA,OAAO,CAACE,OAAO,CAAC,UAAAC,EAAE,EAAI;MACpB,IAAIC,YAAY,GAAG,KAAK;MACxB;MACA;MACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,gBAAgB,CAACU,MAAM,EAAED,CAAC,EAAE,EAAE;QAChD,IAAIT,gBAAgB,CAACS,CAAC,CAAC,CAACF,EAAE,KAAKA,EAAE,EAAE;UACjCC,YAAY,GAAG,IAAI;UACnB,IAAIH,SAAS,IAAIL,gBAAgB,CAACS,CAAC,CAAC,CAACE,UAAU,EAAE;YAC/CR,UAAU,CAACS,SAAS,CAACL,EAAE,EAAE;cAACM,SAAS,EAAE;YAAiB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