Simple Leaflet Map
✓ Published0🌍 Public
Dd3noob
Last edited Dec 6, 2019
Created on Dec 6, 2019
A simple Leaflet map shows a draggable, semi-transparent marker with hover text and a popup overlaid on an OpenStreetMap tile layer. The map is centered on Wellington, New Zealand, using the Leaflet `L.map` API, with the marker pinning Te Papa museum. The example demonstrates core Leaflet features including `L.tileLayer` for basemap tiles, `L.marker` with options for dragging, title, and opacity, and `bindPopup` to attach interactive popup content.
AI-generated descriptionAn example of a map presented with leaflet.js and incorperating a marker with a popup, draggability, a title and opacity.
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