h2g2 - GuideML - MAP tag
Created | Updated Dec 3, 2003
pompy dompy dooooo
MAP tag
Function
The
<MAP>
tag creates link(s) to other pages, were areas of an image can be assigned tentative.
Syntax
<MAP NAME="mapname">
area-tags
</MAP>
map-image
The
NAME
is the only attribute, just give it a unique name, to provide yourself with the knowledge what image it is for.
A specialised enclosed area is for area-tags these are used to
-
identify regions (preferrably on the image)
relate these areas to an address
give an alternative tip for this area
After the close map tag you have to specify the image and relate it to the map hence the mapname.
Area-tag
Syntax
<AREA SHAPE="geom" COORDS="x,y[,x,y[,x,y[,x,y[,x,y[,x,y[..]]]]]]" H2G2="URL" ALT="Destination"/>
SHAPE
can be a geometrical shape
"rect"
for the city square
"poly"
for other specific areas
"circle"
fits nice over a head
COORDS
"0,0, 100,100"
1
for rectangular shape (lefttop, rightbottom)
for a polygram (many-lined) shape (sequential list of x,y coordinates, the last should match the first)
H2G2 yes, well, you wanted to link something did you, do it here.
ALT most users will appreciate to know where they are going, give hint about the target
/ do not forget to include the close sign /
Map-Image
Syntax
<IMG SRC="B1234" USEMAP="#mapname" ALT="off tentative hint"/>
SRC
where to get the image from. The image must be part of the H2G2 image library. The images can have other sizes and shapes over skins, select the skin by trailing the number with 'white' or 'blue'.
USEMAP
this is where we connect the mapped areas over this image, use the unique name as defined in the map open tag with a leading #.
ALT
this is where you can place a hint tag for the not tentative areas
/ do not forget to include the close sign /
Known issues
The linked pages do _not_ appear in referenced list
It is a tedious job to find the image as you can not use (all) relative locations and the preview function does not work.
The BIO reference attribute does not work in the AREA tag. The BLOB reference does not either.
Probably not approved GuideML (???)
Example
A1096986
GuideML-Clinic
It is not unwise to seperate pairs by an extra space.