PlacePicker

PlacePicker responsive analysis controls

Introduction

PlacePicker is an interactive heat-island explorer for Piemonte and Lombardia. It turns a point selected on a map into a compact environmental profile, helping compare temperature, green coverage, impermeable surfaces, and building density within a configurable area.

Features

Clicking the map selects a location and draws an analysis circle whose radius can be adjusted from 100 metres to 2 kilometres. The sidebar reports the current temperature, percentage of green and paved area, and buildings per square kilometre, then combines those measurements into a Heat Island Score from 0 to 100.

Map layers can display detected green areas, impermeable surfaces, buildings, and an optional temperature heatmap. The temperature layer samples a 5 by 5 grid around the selected point, while requests and computed area statistics are cached in the browser to keep repeated exploration responsive.

Architecture

The application is built with Vite, React, and TypeScript. React Leaflet renders the map and GeoJSON overlays, Zustand stores the selected point, radius, and layer visibility, and Turf performs circle creation, polygon clipping, line buffering, and point-in-area calculations.

Current and grid temperatures come from Open-Meteo. Land use, natural areas, parking, buildings, and roads come from OpenStreetMap through Overpass; a same-origin Azure Function proxy tries multiple public Overpass endpoints and avoids browser CORS restrictions. Roads are assigned estimated widths by class before being buffered into surface area. The score weights normalized temperature at 35 percent, asphalt at 25 percent, green space at negative 25 percent, and building density at 15 percent.

Conclusion

PlacePicker combines live weather with open geographic data to make urban heat factors visible at neighbourhood scale. Its client-side spatial analysis and layered map turn several independent datasets into a quick, repeatable comparison tool.

The source code is available on GitHub.