*** WIP WIP *** All charts work (mostly)

This commit is contained in:
rxf
2023-03-31 17:38:55 +02:00
parent 1cdf03b064
commit a1c1c93bc4
7 changed files with 69 additions and 19 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ let clickedSensor = 0
const colorscale = ['#d53e4f', '#fc8d59', '#fee08b', '#e6f598', '#99d594', '#3288bd', '#808080'];
const dba = [100, 80, 60, 40, 20, 0, -999];
export const showMap = async (params) => {
export async function showMap(params) {
if (map) return
map = L.map('map',{ scrollWheelZoom: false}).setView(params.center, parseInt(params.zoom))
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {