GeoJSON to SVG
✓ Published0🌍 Public
SStephen
Last edited Jun 8, 2016
Created on Jun 8, 2016
The example converts GeoJSON country polygons into standalone SVG files, one per country, using the `geojson2svg` library. It computes each feature’s bounding box with `turf.bbox` to set the map extent, then renders a filled green path with a `Name` attribute as the SVG element’s ID. A second, black offset path is attempted by reusing the converter with a `translate(5,5)` transform, though the code notes this styling step is unfinished. The script reads `Admin_0_Polygons.json` from a local gist and writes each resulting SVG to disk.
AI-generated description