{"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":1691112410118},{"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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iAgICAgICAgdmFyIGN1cnJlbnRab29tID0gZmxhdG1hcEltcC5nZXRab29tKClbInpvb20iXTsKICAgICAgICBpZiAoZm9yY2UgfHwgdGhpcy56b29tTGV2ZWwgIT09IGN1cnJlbnRab29tKSB7CiAgICAgICAgICB0aGlzLnpvb21MZXZlbCA9IGN1cnJlbnRab29tOwogICAgICAgICAgZmxhdG1hcEltcC5jbGVhck1hcmtlcnMoKTsKICAgICAgICAgIHZhciBtYXJrZXJzID0gc3RvcmUuc3RhdGUuc2V0dGluZ3MubWFya2VyczsKICAgICAgICAgIGNoZWNrTWFya2Vyc0F0Wm9vbUxldmVsKGZsYXRtYXBJbXAsIG1hcmtlcnMsIHRoaXMuem9vbUxldmVsKTsKICAgICAgICAgIGlmICh0aGlzLmVudHJ5LnR5cGUgPT09ICJNdWx0aUZsYXRtYXAiKSB7CiAgICAgICAgICAgIHRoaXMucmVzdG9yZUZlYXR1cmVkTWFya2VycyhmbGF0bWFwSW1wKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0sCiAgICBmbGF0bWFwUmVhZHlGb3JNYXJrZXJVcGRhdGVzOiBmdW5jdGlvbiBmbGF0bWFwUmVhZHlGb3JNYXJrZXJVcGRhdGVzKGZsYXRtYXApIHsKICAgICAgaWYgKGZsYXRtYXApIHsKICAgICAgICBmbGF0bWFwLmVuYWJsZVBhblpvb21FdmVudHModHJ1ZSk7IC8vIFVzZSB6b29tIGV2ZW50cyBmb3IgZHluYW1pYyBtYXJrZXJzCiAgICAgICAgdGhpcy5mbGF0bWFwUmVhZHkgPSB0cnVlOwogICAgICAgIHZhciBmbGF0bWFwSW1wID0gZmxhdG1hcC5tYXBJbXA7CiAgICAgICAgdGhpcy5mbGF0bWFwTWFya2VyWm9vbVVwZGF0ZSh0cnVlLCBmbGF0bWFwSW1wKTsKICAgICAgfQogICAgfQogIH0KfTs="},{"version":3,"names":["markerZoomLevels","store","checkMarkersAtZoomLevel","flatmapImp","markers","zoomLevel","forEach","id","foundInArray","i","length","showAtZoom","addMarker","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);\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);\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,CAAC;UAC1B;UACA;QACF;MACF;MACA;MACA;MACA,IAAI,CAACC,YAAY,EAAE;QACxBL,UAAU,CAACS,SAAS,CAACL,EAAE,CAAC;MACnB;IACF,CAAC,CAAC;EACJ;AACF,CAAC;;AAED;AACA,eAAe;EACbM,OAAO,EAAE;IACPC,sBAAsB,EAAE,SAAAA,uBAAUC,OAAO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