Marker on maps has empty ALT info

Hi.

My site uses SiteImprove to check for accessibility issues. It is flagging the marker in the center of the maps we use:

I checked the markup, it’s right, there is no alt info. Is there a way to fix that?

Thanks!

From the screenshot, it looks like you’re using Leaflet to display the map tiles. If you use Leaflet’s L.marker class, it would set alt="Marker" on the <img> tag by default unless you pass in a different alt option. Or maybe you’re putting the pin on the map some other way?

1 Like