Skip to main content
100%

Simple Leaflet Map

✓ Published0🌍 Public
Dd3noob
Last edited Apr 20, 2014
Created on Nov 28, 2013

A simple interactive map displays a geographic area centered on a set of coordinates, with a single red polyline overlaid on base tiles from OpenStreetMap. The map is created with Leaflet, using its `L.map` and `tileLayer` APIs to render the tile background. The polyline, defined as an array of latitude and longitude pairs, is added with the `L.polyline` API and styled with options for color, weight, opacity, dash pattern, and line join. The example demonstrates basic Leaflet map creation and vector overlay customization.

AI-generated description

An example of a map presented with leaflet.js and incorperating a polyline with a a range of options.

Similar vizzes