Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the Coords in the Area tag?

Tags:

html

I want a shape, say circle in the particular area in a map. With the help of area tag in Html, i can do that. But how do i give the values to the coords attributes so that i need a shape at that particular area?

like image 505
sriram Avatar asked Apr 06 '11 10:04

sriram


People also ask

How do I get coordinates for an area tag?

HTML | <area> coords Attribute The <area> coords attribute is used to specify the coordinate of an area in an image-map. It is used with shape attribute to specify the size, shape, and placement of an area. (0, 0) is the coordinate of the top-left corner.

How do I find the coordinates of a circle in HTML?

Circle image maps will have the coordinates: coords=”x,y,radius” where xy are the coordinates of the center of the circle and the radius is the radius of the circle. Polygon image maps will have the coordinates: coords=”x1,y1,x2,y2,x3,y3….” where each xy pair defines a corner of the shape.

How do you use area tags?

The <area> tag defines an area inside an image map (an image map is an image with clickable areas). <area> elements are always nested inside a <map> tag. Note: The usemap attribute in <img> is associated with the <map> element's name attribute, and creates a relationship between the image and the map.


1 Answers

Use GIMP to generate map co-ords for you.

Filter-> Web -> ImageMap

For further doubts, refer to gimp's docs.

like image 86
sugavaneshb Avatar answered Sep 22 '22 19:09

sugavaneshb