Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
If that's the case, I think you will need to use some sort of spatial analysis library as Leaflet only displays stuff on the map, but can't do the analysis. If it is a simple analysis, I would go with Turf.js . Works nicely with Leaflet, easy to use, if it's a bit more than a quick calculation, then I assume something that works in the back-end would be better (PostGIS is quite popular if you have the data in the db).
You might be able to use the heatmap plugin for Leaflet (https://github.com/Leaflet/Leaflet.heat). You might also want to check out mapboxgljs or its free alternative maplibre-gl-js (https://docs.mapbox.com/mapbox-gl-js/example/heatmap-layer/)