Skip to main content
100%

hello turf.js

✓ Published1🌍 Public
Zzach b.
Last edited May 12, 2023
Created on Feb 17, 2022
Forked from hello leaflet.js

This visualization demonstrates the integration of Leaflet, Turf.js, and D3.js to explore spatial analysis on a map of Nepal's districts. It displays district areas and headquarters as interactive layers with popups showing computed area, center, and bounding box values. The code uses Turf’s `area`, `center`, `bbox`, and `buffer` functions to calculate spatial metrics, and also constructs overlapping polygons to visualize union, difference, and intersection operations. A base OpenStreetMap tile layer provides geographic context, with layer controls to toggle between the OSM, district, and headquarters overlays. The map is initialized and rendered entirely in the browser using Leaflet’s API.

AI-generated description

a stump viz for turf.js

using this tutorial:
Advance Spacial Analysis in Leaflet, Turf, Tekson

MIT Licensed

Similar vizzes