Hello, friends!
I'm trying to map an image, using the html5 "Area" tag that works with polygons, I want to map a rectangle or several rectangles over an "img" image.
My question is, do I have a mapping that I can not find or coordinate in this way:
[X:166 - Y:64] [X:245 - Y:64] [X:245 - Y:81] [X:166 - Y:81]
They are coordinates of an area of an image. what I want and get these coordinates and map them using the HTML5 Area tag but this tag only accepts 4 types of coordinates, how to proceed?
<map name = “shape”> <area shape = “rect” alt=”parte 1” coords = “0, 0, 100, 100” href=”parte1.html”/> <area shape = “circle” alt=”parte 2” coords = “100, 100, 25” href=”parte2.html”/> <area shape = “poly” alt=”parte 3” coords = “116, 207, 186, 299, 49, 296” href=”parte3.html”/></map><img src=”imagem.jpg” usemap=”#shape” />
From what I saw "Area" only accepts 4 coordinates and now.