Your map file contains the information that relates the coordinates of a mouse click to a URL that you want to be returned when that area is clicked. The general syntax for lines in the map file is:
method URL coordinates
The method describes how you define your image hotspots. The following methods are available:
default - returns a default URL if the click was in an undefined area.
No coordinates required.
circle - defines a circle. Coordinates required: center point and edge point.
rect - defines a rectangle. Coordinates required: upper left corner, lower right corner.
poly - defines a polygon. Coordinates required: all the vertices (up to 100).
point - allows you to define points such that a mouse click returns a URL according to which point it was closest to. If you use point There is no need to use default.
NCSA httpd map files are called    yourfilename.map
default URL1
circle URL2 xc,yc xe,ye
rectangle URL3 x1,y1 x2,y2
polygon URL4 x1,y1 x2,y2 x3,y3
The methods available and the proper syntax are:
default URL
circle (x, y) r URL
rectangle (x1, y1) (x2, y2) URL
polygon (x1, y1) (x2, y2) ... (xn, yn) URL
The circle method uses the center point of the circle and the radius.
Client-side imagemaps have a related but different syntax.
Back to the example page