From 5fe7522f5f60248af5f190a4687c9bea32959c3a Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Tue, 21 Apr 2026 15:52:41 +0200 Subject: [PATCH 1/6] deactivated mouse position control and polyline measure plugin --- public/index.php | 4 ++-- public/js/app.js | 38 +++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/public/index.php b/public/index.php index 59e6c90..80caa64 100644 --- a/public/index.php +++ b/public/index.php @@ -54,7 +54,7 @@ if (!$municipality) { - + @@ -321,7 +321,7 @@ if (!$municipality) { - + diff --git a/public/js/app.js b/public/js/app.js index a1c1613..ee4cfd6 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -135,31 +135,31 @@ L.Control.geocoder({ }).addTo(map); // Polyline Measure Tool -L.control.polylineMeasure({ - position: 'topright', - unit: 'metres', - showBearings: false, - clearMeasurementsOnStop: false, - showClearControl: true -}).addTo(map); +// L.control.polylineMeasure({ +// position: 'topright', +// unit: 'metres', +// showBearings: false, +// clearMeasurementsOnStop: false, +// showClearControl: true +// }).addTo(map); // Mouse Position Display -var MousePositionControl = L.Control.extend({ - options: { position: 'bottomright' }, +// var MousePositionControl = L.Control.extend({ +// options: { position: 'bottomright' }, - onAdd: function () { - var container = L.DomUtil.create('div', 'mouse-position-display'); - container.innerHTML = 'Lat: , Lng: '; +// onAdd: function () { +// var container = L.DomUtil.create('div', 'mouse-position-display'); +// container.innerHTML = 'Lat: , Lng: '; - map.on('mousemove', function (e) { - container.innerHTML = 'Lat: ' + e.latlng.lat.toFixed(5) + ', Lng: ' + e.latlng.lng.toFixed(5); - }); +// map.on('mousemove', function (e) { +// container.innerHTML = 'Lat: ' + e.latlng.lat.toFixed(5) + ', Lng: ' + e.latlng.lng.toFixed(5); +// }); - return container; - } -}); +// return container; +// } +// }); -new MousePositionControl().addTo(map); +// new MousePositionControl().addTo(map); // GPS Location Button var GpsControl = L.Control.extend({ -- 2.49.1 From 2b3fcb6ebf1f41289d2d570d063b104e5ab02b9f Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Tue, 21 Apr 2026 16:13:56 +0200 Subject: [PATCH 2/6] replaced category emojis with fontawesome icons --- public/js/app.js | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index ee4cfd6..6fc2aa0 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -21,13 +21,13 @@ var currentUser = sessionStorage.getItem('webgis_user') || ''; // Category Definitions with Labels, Icons, and Colors var CATEGORIES = { - mobility: { label: 'Mobilität', icon: '🚲', color: '#1565C0', faIcon: 'fa-bicycle' }, - building: { label: 'Bauen', icon: '🏗️', color: '#E65100', faIcon: 'fa-helmet-safety' }, - energy: { label: 'Energie', icon: '⚡', color: '#F9A825', faIcon: 'fa-bolt' }, - environment: { label: 'Umwelt', icon: '🌳', color: '#2E7D32', faIcon: 'fa-tree' }, - industry: { label: 'Industrie', icon: '🏭', color: '#6A1B9A', faIcon: 'fa-industry' }, - consumption: { label: 'Konsum', icon: '🛒', color: '#AD1457', faIcon: 'fa-cart-shopping' }, - other: { label: 'Sonstiges', icon: '📌', color: '#546E7A', faIcon: 'fa-map-pin' } + consumption: { label: 'Geschäfte', faIcon: 'fa-cart-shopping', color: '#C00000' }, + building: { label: 'Bauen', faIcon: 'fa-building', color: '#E65100' }, + energy: { label: 'Energie', faIcon: 'fa-bolt', color: '#FFC000' }, + environment: { label: 'Umwelt', faIcon: 'fa-seedling', color: '#92D050' }, + mobility: { label: 'Mobilität', faIcon: 'fa-bus', color: '#0070C0' }, + industry: { label: 'Industrie', faIcon: 'fa-industry', color: '#7030A0' }, + other: { label: 'Sonstiges', faIcon: 'fa-thumbtack', color: '#7F7F7F' } }; // Application State @@ -381,7 +381,7 @@ function bindFeaturePopup(feature, layer) { // Builds Popup on Click var html = '' + '