From 195270415c4ab5bb6fd985a9bc848a42099af871 Mon Sep 17 00:00:00 2001 From: JeremyJamesL Date: Wed, 11 Dec 2024 08:24:53 +0000 Subject: =?UTF-8?q?=F0=9F=93=A6=20NEW:=20new=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/refactor.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'src/refactor.js') diff --git a/src/refactor.js b/src/refactor.js index e68d2d9..3731993 100644 --- a/src/refactor.js +++ b/src/refactor.js @@ -60,7 +60,7 @@ const dataController = (function () { query, ...algolia_params, ...geoParam, - attributesToRetrieve: ['_geoloc', 'name'], + attributesToRetrieve: ['_geoloc', 'name', 'address', 'postcode'], }, }); return res; @@ -91,6 +91,7 @@ const interfaceController = (function () { zoom, center: position, mapId: 'pub_map', + colorScheme: 'DARK', restriction: { latLngBounds: maxSpace, strictBounds: true, @@ -102,15 +103,20 @@ const interfaceController = (function () { bounds: bounds, editable: true, draggable: true, + strokeWeight: 2, + strokeOpacity: 0.8, + strokeColor: '#D97706', + fillColor: '#D97706', + fillOpacity: 0.35, }); shape.setMap(map); } else if (currentShape === 'polygon') { shape = new Polygon({ paths: initialPolygonBounds, - strokeColor: '#FF0000', + strokeColor: '#D97706', strokeOpacity: 0.8, strokeWeight: 2, - fillColor: '#FF0000', + fillColor: '#D97706', fillOpacity: 0.35, editable: true, draggable: true, @@ -156,7 +162,15 @@ const interfaceController = (function () { let html = ``; -- cgit v1.2.3