In order to include interaction to my OpenLayers 3 raster layer, I would like to use something similar to the HTML
<area> tag (http://www.w3schools.com/tags/tag_area.asp). The aim is to click on certain regions on a raster layer (without projection) to trigger an event.
I haven't found anything on the web and would like to hear your experiences, comments etc.
One idea so far is to use an
<img> with a transparent gif image (1x1 px) and then extended over the map extent.
<img src="/img/transparent.gif" width="1024" height="1024" usemap="#mapImg"> <map id="mapImg"> <area id='area1' shape='poly' coords='...'> <area id='area2' shape='poly' coords='...'> <area id='area3' shape='poly' coords='...'> </map>