From 830e56fc8d875e194411d049d308dd0780726941 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Fri, 26 Sep 2025 12:13:47 +0200 Subject: [PATCH] fixed not2connect markers --- .../js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.css | 2 +- .../js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.css b/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.css index 5479da9d0..15c27b513 100644 --- a/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.css +++ b/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.css @@ -348,4 +348,4 @@ div.leaflet-marker-icon.custom-div-icon { .marker-multiple-dwelling { background-color: #6f42c1; } .marker-public { background-color: #17a2b8; } .marker-other { background-color: #bf2d69; } -.marker-not-to-conenct { background-color: #6c757d !important; } \ No newline at end of file +.marker-not-to-connect { background-color: #6c757d !important; } \ No newline at end of file diff --git a/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.js b/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.js index 11e83635b..2e8e79cb5 100644 --- a/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.js +++ b/public/js/pages/PreorderRimoTypeMap/PreorderRimoTypeMap.js @@ -196,7 +196,9 @@ Vue.component('PreorderRimoTypeMap', { return { lat: group.gps_lat, lng: group.gps_long, rimoType, hausnummerId: group.hausnummer_id, options: { - icon: {className: `custom-div-icon marker-${rimoType} ${hasFault ? 'marker-has-fault' : ''} ${isNot2Connect ? 'marker-not-to-conenct' : ''}`, html: `
`, iconSize: [30, 30], iconAnchor: [15, 30]}, + icon: { + className: `custom-div-icon marker-${rimoType} ${hasFault ? 'marker-has-fault' : ''}`, + html: `
`, iconSize: [30, 30], iconAnchor: [15, 30]}, tooltip: {content: `
H: ${group.wohneinheit_count}
B: ${group.preorder_count}
`, direction: 'bottom', className: 'marker-label', permanent: true, minZoom: 18}, asyncPopupContent: async () => this.generateBuildingPopupHtml(group), }, @@ -282,8 +284,8 @@ Vue.component('PreorderRimoTypeMap', { const hasFault = fault && !fault.done; const markerIconDef = this.getMarkerIcon(rimoType); const newIcon = L.divIcon({ - className: `custom-div-icon marker-${rimoType} ${hasFault ? 'marker-has-fault' : ''} ${isNot2Connect ? 'marker-not-to-conenct' : ''}`, - html: `
`, + className: `custom-div-icon marker-${rimoType} ${hasFault ? 'marker-has-fault' : ''}`, + html: `
`, iconSize: [30, 30], iconAnchor: [15, 30] });