From 753b22dd606485335e36fe4134ce04efd03f3fb5 Mon Sep 17 00:00:00 2001 From: Mat Johnson Date: Mon, 16 Mar 2026 12:53:28 +0000 Subject: [PATCH] Remove script include for now --- app/assets/javascript/map-scripts.js | 47 ---------------- .../bso/bso-internal-details.html | 53 ++++++++++++++++++- .../location/location-location-details.html | 52 +++++++++++++++++- 3 files changed, 101 insertions(+), 51 deletions(-) delete mode 100644 app/assets/javascript/map-scripts.js diff --git a/app/assets/javascript/map-scripts.js b/app/assets/javascript/map-scripts.js deleted file mode 100644 index 4e2b94c..0000000 --- a/app/assets/javascript/map-scripts.js +++ /dev/null @@ -1,47 +0,0 @@ -function circleIcon({ fill = '#fff', stroke = '#000', strokeWidth = 2, - text = '', textColor = '#000', radius = 14, fillOpacity = 1 } = {}) { - const width = radius * 2; - const pointHeight = radius * 1.2; - const height = width + pointHeight; - const cx = radius; - const cy = radius; - - return L.divIcon({ - html: ` - - - - - - - ${text} - - `, - className: '', - iconSize: [width, height], - iconAnchor: [cx, height], - popupAnchor: [0, -height] - }); -} - -const landmarkIcons = { - orgLocation: circleIcon({ fill: '#fff9c4', text: 'O' }), - static: circleIcon({ fill: '#fff9c4', text: 'S' }), - mobile: circleIcon({ fill: '#ed8b00', text: 'M' }), - default: circleIcon({ fill: '#fff', text: '' }), -}; - -const mapOptions = { - attributionControl: false, - scrollWheelZoom: false -}; - -const map = L.map('app-map', { - maxZoom: 15 -}); diff --git a/app/views/pre-alpha-flats/bso/bso-internal-details.html b/app/views/pre-alpha-flats/bso/bso-internal-details.html index 4c3e093..d6b5252 100644 --- a/app/views/pre-alpha-flats/bso/bso-internal-details.html +++ b/app/views/pre-alpha-flats/bso/bso-internal-details.html @@ -161,12 +161,61 @@

BSO area

- + + - +