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.
My waypoint-widget
<<widget "waypoint">>
<<set $waypointlocation = $args[0]>>
<<set $waypointsimple = $waypointlocation.replace(/'|\s/g, '')>>
<<set $waypointsimple = $waypointsimple.toLowerCase()>>
<<set $waypointhash = "#"+$waypointsimple>>
<<set $waypointxy = $args[1]>>
<img src="https://i.imgur.com/Rg43Fwe.png" @usemap="$waypointhash" class="overlaywaypoint" @style="$waypointxy">
<map @name="$waypointsimple">
<area target="_blank" @alt="$waypointlocation" @title="$waypointlocation" @data-passage="$waypointlocation" coords="16,30,25,10,20,1,11,1,8,10" shape="poly">
</map>
<</widget>>
and I'm calling the widget with:
<<waypoint "Braxton's Goods" "top: 250px; left: 85px;">>