From 12b39bdf842bcc8e1610c8a1a2446f63e651d15e Mon Sep 17 00:00:00 2001
From: VPoussou <94170838+VPoussou@users.noreply.github.com>
Date: Mon, 24 Jun 2024 11:57:49 +0200
Subject: [PATCH] Adding Scale control and swap map sources button +
Color burn at top of list and zoom level when latlon searching default 15
---
public/swap.svg | 7 +++++++
src/App.tsx | 8 +++++---
src/blending-control.tsx | 4 ++--
src/control-panel.tsx | 5 ++++-
src/geocoder-control.tsx | 3 ++-
5 files changed, 20 insertions(+), 7 deletions(-)
create mode 100644 public/swap.svg
diff --git a/public/swap.svg b/public/swap.svg
new file mode 100644
index 0000000..7f1d274
--- /dev/null
+++ b/public/swap.svg
@@ -0,0 +1,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/App.tsx b/src/App.tsx
index 19a3757..778342c 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,10 +1,10 @@
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
import "./App.css";
-import Map, { type MapRef, Source, Layer } from "react-map-gl";
+import Map, { type MapRef, Source, Layer, ScaleControl } from "react-map-gl";
import GeocoderControl from "./geocoder-control";
import ControlPanel, { type MapSplitMode } from "./control-panel";
-import { subMonths } from "date-fns";
+import { set, subMonths } from "date-fns";
import Split from "react-split";
import { ToggleButton, ToggleButtonGroup } from "@mui/material";
@@ -16,6 +16,7 @@ import {
debounce,
useLocalStorage,
} from "./utilities";
+import mapboxgl from "mapbox-gl";
const MAPBOX_TOKEN = import.meta.env.VITE_MAPBOX_TOKEN;
@@ -323,7 +324,6 @@ function App() {
onMove={activeMap === "left" ? onMoveDebounce : () => ({})}
style={LeftMapStyle}
mapStyle={leftMapboxMapStyle}
-
// projection={"naturalEarth"} // globe mercator naturalEarth equalEarth // TODO: eventually make projection controllable
>
} */}
{/* beforeId={"GROUP_"} */}
+