11import * as turf from "@turf/turf" ;
22import { Modal } from "antd" ;
3- import { useCallback , useEffect , useRef , useState } from "react" ;
3+ import { useCallback , useEffect , useState } from "react" ;
44import { GeoJSON , MapContainer , Pane } from "react-leaflet" ;
55import "leaflet/dist/leaflet.css" ;
66import L from "leaflet" ;
@@ -883,7 +883,7 @@ const ClimateMap = ({ onMount = () => true }) => {
883883 `DEBUGYEARCHANGE: Temperature data length: ${ temperatureData . length } ` ,
884884 ) ;
885885 console . log (
886- ` DEBUGYEARCHANGE: First temperature point:` ,
886+ " DEBUGYEARCHANGE: First temperature point:" ,
887887 temperatureData [ 0 ] ,
888888 ) ;
889889
@@ -901,9 +901,9 @@ const ClimateMap = ({ onMount = () => true }) => {
901901 console . log (
902902 `DEBUGYEARCHANGE: NUTS features count: ${ nutsGeoJSON . features . length } ` ,
903903 ) ;
904- console . log ( ` DEBUGYEARCHANGE: NUTS extremes:` , extremes ) ;
904+ console . log ( " DEBUGYEARCHANGE: NUTS extremes:" , extremes ) ;
905905 console . log (
906- ` DEBUGYEARCHANGE: First NUTS feature:` ,
906+ " DEBUGYEARCHANGE: First NUTS feature:" ,
907907 nutsGeoJSON . features [ 0 ] ,
908908 ) ;
909909
@@ -951,9 +951,10 @@ const ClimateMap = ({ onMount = () => true }) => {
951951 worldwideRegionsGeoJSON ,
952952 processingError ,
953953 loadworldwideRegions ,
954- calculateRegionTemperature ,
954+ calculateRegionTemperatureWithCoords ,
955955 isPointInRegion ,
956956 sampleTemperatureData ,
957+ currentYear ,
957958 ] ) ;
958959
959960 // Cleanup timeouts on unmount
0 commit comments