Simple Leaflet Map
✓ Published0🌍 Public
Dd3noob
Last edited Dec 6, 2019
Created on Dec 6, 2019
A simple interactive map of central Wellington, New Zealand, rendered with Leaflet 1.6.0 and OpenStreetMap tiles. The view centers on a set of coordinates, over which a red polyline with custom styling—including weight, opacity, and a dash pattern—is drawn using `L.polyline`. The map supports panning and zooming through Leaflet's built-in interactions.
AI-generated descriptionAn example of a map presented with leaflet.js and incorperating a polyline with a a range of options.
This graph is part of the code samples for the update to the book Leaflet Tips and Tricks to version 1 of leaflet.js.
mit Licensed