Skip to main content
100%

[Working with spatial data](https://github.com/enjalot/wwsd)

✓ Published0🌍 Public
Aannabsmylie
Last edited Jun 19, 2016
Created on Jun 19, 2016

This example displays global river centerlines on an interactive Leaflet map with a dark gray stroke style. It loads GeoJSON data from a hosted world rivers dataset and renders it as vector features over OpenStreetMap tiles. The code uses Leaflet’s `L.map`, `L.tileLayer`, and `L.geoJson` APIs, with D3’s `d3.json` to fetch the external data file asynchronously. The map is centered on the world with an initial zoom level of 2.

AI-generated description

Working with spatial data

Example #1

Getting started with Leaflet

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/5c780d3df8da2ecceebf117a9ac7be38'>WWSD #1: Leaflet starter</a>

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/208dd99b6ed6a424513524d963880700'>WWSD #1-a: Leaflet Rivers</a>

Similar vizzes