Skip to main content
100%

Leaflet Web Map

✓ Published0🌍 Public
Aandreaangeli
Last edited Apr 24, 2016
Created on Apr 24, 2016

This interactive web map displays a route through downtown Toronto as a red polyline overlaid on OpenStreetMap tiles. The map initializes with a view centered at latitude 43.64701 and longitude -79.39425 at zoom level 15, with scroll-wheel zoom disabled. Using the Leaflet JavaScript library and its CSS stylesheet, the code defines an array of six coordinate points representing the path and renders them via `L.polyline` with red color and full opacity. The base tiles come from OpenStreetMap’s tile server, with attribution included. The map container is a div with fixed dimensions of 960 by 500 pixels.

AI-generated description

forked from <a href='http://bl.ocks.org/uafrazier/'>uafrazier</a>'s block: <a href='http://bl.ocks.org/uafrazier/e00bbb2f864d39c293ed'>Leaflet Map with a Polyline</a>

Similar vizzes