Simple Leaflet Map
✓ Published0🌍 Public
Dd3noob
Last edited Apr 20, 2014
Created on Dec 6, 2013
This example shows an interactive map centered on Wellington, New Zealand, with a choice between two base tile layers. It uses Leaflet.js to render map tiles and handles layer switching via a control widget. The map includes an OpenStreetMap tile layer and a Thunderforest landscape layer, with proper attribution for both data sources. The code initializes a map element and uses `L.tileLayer` and `L.control.layers` to manage the selectable background layers.
AI-generated descriptionAn example of using leaflet.js with multiple tile layers.