Skip to main content
100%

Loading and parsing topojson data

✓ Published0🌍 Public
AAnimesh Nautiyal
Last edited Oct 13, 2020
Created on Oct 13, 2020
Forked from HTML Starter

This example demonstrates how to load and parse a TopoJSON file from a remote URL, logging the resulting JSON object to the browser console. The code defines an asynchronous function that uses the `fetch` API to request the TopoJSON file and then parses the response as JSON. It specifically targets a dataset containing India’s state boundaries from the NFHS-4 survey, with the file hosted on GitHub Gist. The visualization itself is minimal, containing only a near-empty webpage with oversized text, as the primary purpose is to inspect the raw data structure through the console output rather than display a map.

AI-generated description

Loading and parsing topojson data

MIT Licensed

Similar vizzes