Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does (HTML5) Canvas have the equivalent of an image map?

Does the Canvas element have the equivalent of img's map, so you can define clickable areas on the canvas element?

There is brief mention of a map halfway down the page here: http://www.w3.org/TR/html5/the-canvas-element.html, but I can't find anything else about it.

like image 675
Mr. Flibble Avatar asked May 28 '10 20:05

Mr. Flibble


1 Answers

Even if there isn't, wouldn't an image map on a transparent image positioned over a canvas get you what you need?

like image 77
Weston C Avatar answered Sep 24 '22 03:09

Weston C