• Resolved arakz

    (@arakz)


    Hello,

    Is it possible to add title and alt? Like here: https://leafletjs.com/examples/accessibility/

    Markers must be labelled

    When using markers, it is vital to ensure each has a unique and descriptive alt or title:

    var marker = L.marker([50.4501, 30.5234],
      {alt: 'Kyiv'}).addTo(map) // "Kyiv" is the accessible name of this marker
      .bindPopup('Kyiv, Ukraine is the birthplace of Leaflet!');

    Greetings

    Andre

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor hupe13

    (@hupe13)

    Use this shortcode:

    [leaflet-marker title="Kyiv" lat=50.4501 lng=30.5234]Kyiv, Ukraine is the birthplace of Leaflet![/leaflet-marker]
    Plugin Author bozdoz

    (@bozdoz)

    This is already supported:

    [leaflet-marker alt="Kyiv" lat=50.4501 lng=30.5234]Kyiv, Ukraine is the birthplace of Leaflet![/leaflet-marker]
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.