Back to Leaflet

Accessible Markers Example

docs/examples/accessibility/example.md

1.9.4501 B
Original Source
<script type="module"> import {LeafletMap, TileLayer, Marker, Icon} from 'leaflet'; const map = new LeafletMap('map').setView([50.4501, 30.5234], 4); const tiles = new TileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' }).addTo(map); const marker = new Marker([50.4501, 30.5234], {alt: 'Kyiv'}).addTo(map) .bindPopup('Kyiv, Ukraine is the birthplace of Leaflet!'); </script>