Simple Leaflet Map
✓ Published0🌍 Public
Dd3noob
Last edited Apr 20, 2014
Created on Dec 7, 2013
This example shows a Leaflet map centered on Wellington, New Zealand, with selectable base layers and an overlay of local landmarks. It uses Leaflet’s `L.map`, `L.tileLayer`, and `L.control.layers` to switch between OpenStreetMap and Thunderforest landscape tiles. An `L.LayerGroup` contains four markers with popups and a polyline connecting the points, which can be toggled as an overlay. The code also uses `L.marker` and `L.polyline` to add geographic features to the map.
AI-generated descriptionAn example of using leaflet.js with multiple tile layers and an overlay.