Lines beginning with # are comments. NCSA Imagemap Format
Every other non-blank line consists of the following:method URL coord1 coord2 ... coordn
URL is one of the following:
A Local URL
For example: /docs/tutorials
A Full URLFor example: http://www.yahoo.com/
A coord entry is a x,y coordinate, the number depends on the method as show below.
Method Coordinates Comments default none For the default URL which will be used when the client clicks on a location that does not intersect any other region. If the URL is nocontent, then the click will not take the client to another page. circle center edgepoint For a circle poly Each coordinate is a vertex For a polygon of at most 100 vertices rect upper-left lower-right For a rectangle point point x,y For closest to a point Notes:
- Each method is evaluated in the order it is placed in the configuration file. If you have overlapping areas, such as a circle inside of a rectangle, you should place whichever one you want evaluated first before the other in the map file. In this case, we would put the circle before the rectangle.
- Also note that it does not make sense to use the default method with the point method because if even one point method is specified, anywhere you click will be considered close to the point and the URL specified by point will be serviced.
Example
default nocontent rect u.html 19,12 75,75 rect r.html 80,11 135,75 rect http://www.zeus.co.uk/ 138,14 184,76 point l.html 150,130