Skip to main content
100%

Simple Leaflet Map

✓ Published0🌍 Public
Dd3noob
Last edited Dec 6, 2019
Created on Dec 4, 2019

This simple Leaflet map displays a geographic area centered on coordinates [-41.2858, 174.78682] at zoom level 14. It uses Leaflet 1.6.0 to create a map object via `L.map` and renders OpenStreetMap tile imagery from `http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`. The map includes an attribution link to OpenStreetMap contributors, with a maximum zoom of 18. The example demonstrates basic map initialization and tile layer addition using Leaflet’s `tileLayer` API.

AI-generated description

This is an example of a simple map presented using leaflet.js using Open Street Map tiles.

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

Similar vizzes