I am using imagemaps to create a point-n-click travel function.
My <<waypoint>> widget places a geo-tag image above an underlying map-image, and using the @-directive to supply data for the <img> usemap & style attributes (works perfectly).
However, issues arise in the accompanying <map> tag. The name, title & data-passage attributes work as intended, but I never get the tooltip-popup from the alt-attribute. I do require this as a means of knowing which location is which before venturing there.
Outside of the widget, with hardcoded values, I do get the alt-popup.
<<set $waypointlocation = $args>>
<<set $waypointsimple = $waypointlocation.replace(/'|\s/g, '')>>
<<set $waypointsimple = $waypointsimple.toLowerCase()>>
<<set $waypointhash = "#"+$waypointsimple>>
<<set $waypointxy = $args>>
<img src="https://i.imgur.com/Rg43Fwe.png" @usemap="$waypointhash" class="overlaywaypoint" @style="$waypointxy">
<area target="_blank" @alt="$waypointlocation" @title="$waypointlocation" @data-passage="$waypointlocation" coords="16,30,25,10,20,1,11,1,8,10" shape="poly">
and I'm calling the widget with:
<<waypoint "Braxton's Goods" "top: 250px; left: 85px;">>