.gif suffix.
.ncsa-map or cern-map and the image pathname should have the same
name as the map file. In a future release, CL-HTTP will autoexport these when both appear in the same directory.
(export-url #u"/my-image.gif?"
:image-map
:export-type :gif-image
:pathname (pathname "http:images;my-image.gif")
:map-format :cern
:map-pathname (pathname "http:images;my-image.cern-map")
:keywords '(:cl-http :demo)
:documentation "This is my image map.")
You must place a question mark after the server pathname of you export. This tells the
server to build the correct data structures for a searchable-image object. The following list
defines the image-map keywords:
:image-map
:export-type
:pathname
:map-format
:map-pathname
Otherwise, you need to understand the HTML syntax for a searchable image. If the image-map is referenced without the trailing question mark, just the image contents are returned. If the question mark is present, the server treats the request as an image-map. Here is a reference in HTML to an image-map:
<A HREF= "my-image.gif?"> <IMG SRC= "my-image.gif" ISMAP> </A>
ISMAP is a standard HTML IMG attribute that tells the client to return
the coordinates of a user's clicks on an image. Notice that the hyperlink reference is given the
image-map, while the image source is given just the graphical element. You can also make a
standing search reference:
<A HREF= "my-image.gif?34,76"> This refers to a standing search. </A>This automatically refers to a destination specified in an image-map by passing it coordinates directly.