From 21cfd7b6decac84e08b12a676e5a1d7c11ac2afc Mon Sep 17 00:00:00 2001 From: Mikel Maron Date: Thu, 14 Dec 2023 15:06:35 -0400 Subject: [PATCH] styling updates --- site-config.js | 10 +++++----- src/index.html | 2 +- src/site.css | 15 ++++++++++++--- src/site.js | 7 ++++--- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/site-config.js b/site-config.js index 549ad1b..b106bf3 100644 --- a/site-config.js +++ b/site-config.js @@ -3,7 +3,7 @@ var site_config = { accessToken: 'pk.eyJ1IjoiZWFydGhyaXNlIiwiYSI6ImNsa2d4eGhvaTAxb3gzcHAyem5weDY5bGgifQ.dir6j-9L6fv7Q9g_DwT51w', /* Mapbox Base Map Style */ - mapStyle: 'mapbox://styles/earthrise/clkmx3xlm018k01qm3ek6auuv', + mapStyle: 'mapbox://styles/earthrise/clit4wm0101wk01pd1nm7gmro/', /* Zoom level that asset detail cards open at; this is a good one to override in tracker config, depending on scale of facilities */ @@ -12,15 +12,15 @@ var site_config = { /* Define labels for sitewide colors, referenced in tracker config */ colors: { - 'red': '#e37c79', - 'blue': '#aaabf2', - 'green': '#b5eaaa', + 'red': '#e85d5b', + 'blue': '#6e74f2', + 'green': '#5eb663', 'grey': '#9c9c9b' }, /* Mapbox styling applied to all trackers */ paint: { - 'circle-opacity':.9 + 'circle-opacity':.8 }, /* radius associated with minimum/maximum value on map */ diff --git a/src/index.html b/src/index.html index a59a1a3..9f83251 100644 --- a/src/index.html +++ b/src/index.html @@ -23,7 +23,7 @@ '; $('#filter-form').append(check); } }); @@ -769,6 +769,7 @@ function showAllPhases(link) { if (feature_lat > bbox[3]) bbox[3] = feature_lat; } }); + map.flyTo({center: [(bbox[0]+bbox[2])/2,(bbox[1]+bbox[3])/2], zoom: config.phasesZoom}); }