Basic HTML version of Foils prepared 11 May 1997

Foil 28 Clickable Maps

From Introduction to HTML--ECS400 fall 97 ECS400 Senior Undergraduate Course -- Spring Semester 97. by Nancy J. McCracken *

Allow users to click on areas of a map or picture to get more information on the subject represented there.
To define a map, get an image and find the pixel coordinates of the "hot spots" (link areas). xv is a handy program for this.
Each hotspot has a shape of circle, polygon, or rectangle. The rectangle is given by Upper Left corner and Lower Right corner pixel coordinates, the circle by Center and an edge-point, and the polygon by a sequence of points.
Example definition of an image map file (called usa.map) with two hot spots:
default default.html
rect /map/indiana.html 230,100 260,150
circle /map/rhodeisland.html 600,90 600,85
Put a link to an image map in your html document and use the ISMAP attribute in the <img> tag that refers to the actual image.
<a href="http://www.orc.com/map/usa.map">
<img src="map/usa.gif" ISMAP></a>



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Aug 26 1997