Skip to main content
100%

Leaflet starter (Toner basemap)

✓ Published0🌍 Public
AAlan McConchie
Last edited Nov 3, 2016
Created on Nov 3, 2016

This example shows a simple interactive world map with a Stamen Toner basemap, centered at coordinates [30, 0] with an initial zoom level of 2. The map is built using the Leaflet JavaScript library, which loads tile layers from Stamen’s tile server. The code initializes a Leaflet map object, sets its view, and adds a tile layer with the specified URL pattern and attribution. The page uses Leaflet’s CSS and JavaScript files from a CDN, with the map container styled to fill the entire viewport.

AI-generated description

Getting started with Leaflet

Example using map tiles from Stamen

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/almccon/'>almccon</a>'s block: <a href='http://bl.ocks.org/almccon/6d632572739217d2804fd2d429b9fa23'>Leaflet starter</a>

mit Licensed

Similar vizzes