Skip to main content
100%

Gist f1a627d4af91444f3fcaea66c62c8319

✓ Published0🌍 Public
TThomasG77
Last edited Jul 23, 2021
Created on Jul 23, 2021

A Leaflet map centered on France displays a circular buffer polygon around a point at coordinates (2.18, 46). The example uses proj4js and the reproject library to convert the point from WGS84 to EPSG:3857, then applies jsts.io.GeoJSONReader to read the geometry and create a 40,000-meter buffer via the jsts buffer method. After writing the buffered geometry back to GeoJSON, it reprojects to WGS84 and renders the result as a Leaflet GeoJSON layer on OpenStreetMap tiles, with a scale control and a marker at (0,0).

AI-generated description

Similar vizzes