Copyright 1994 by Thomas Boutell. THIS IS NOT PUBLIC DOMAIN SOFTWARE. = Commercial users must pay for it to continue using it after 30 days. = You need not register again when new versions are released. See the file LICENSE for details. For a single-user license, = send a check for $25 in US funds drawn on a US bank to:
Thomas Boutell PO Box 20837 = Seattle, WA 98102 USANonprofit and educational organizations are required to send a postcard or a brief note on the organization's letterhead.
See the file LICENSE for more information about site and volume pricing. Because there are many Unix/X architectures and boutell.com is a small company, we cannot provide customized = binaries for all architectures but will provide registered users with = information on customizing the license notice in the software.
To be consistent with the latest release of the Windows version. The differences between the two versions stem primarily from the = fact that certain features are dramatically easier to provide = under Windows.
"What's changed?"
Version 1.5 is strictly a bug-fixing release:
CERN support! Version 1.1 has complete support for both CERN and NCSA imagemap formats. Mapedit can now automatically recognize either format during loading, and you can save as either format (note that this allows you to convert from one to the other). You can use resources to set CERN to be the default.
Many small fixes and enhancements.
The Imakefile should now be more broadly compatible, particularly with SunOS 4.1.3. =
The crash when clicking the left mouse button at inappropriate times has been fixed.
The URL window no longer pops up when the middle mouse button is used too early in drawing a polygon (<3 points).
mapedit is a WYSIWYG (What You See Is What You Get) editor for imagemap files.
Imagemap files are a feature of both NCSA and CERN httpd servers; they allow you to turn a GIF into a clickable map by designating polygons, circles and rectangles within the GIF and specifying a URL for each to link to.
Unfortunately, creating good image maps by hand is a lot of work, because the points must be located using an editor not explicitly designed for the purpose.
mapedit allows you to load your GIF image into a scrollable, resizable window and then draw polygons, circles and rectangles on top of it, specifying a URL for each. It also allows you to go back and delete these "hot spots", set a default URL for clicks outside of the "hot" areas, and so on. In addition, it allows you to associate comments of arbitrary length with each object if you have a server that accepts the NCSA imagemap format.
To use mapedit, you will need the following:
(NOTE: if you have a version of X older than X11R5, it's time your site upgraded at least to R5. X11R6 is = out now, and X11R5 is several years old.)
You can get an attractive 3D look using the alternative "Xaw3d" widgets, which provide a Motif-like appearance. mapedit works fine with or without Xaw3d. To use Xaw3d instead, change "-lXaw" to "-lXaw3d" in the Makefile that is produced after you run xmkmf (see the section on building mapedit). Of course, you must get and install Xaw3d first to do this.
You can = download Mapedit from www.boutell.com or FTP mapedit from Sunsite , or FTP it by hand from sunsite.unc.edu in the subdirectory pub/packages/infosystems/WWW/tools/mapedit. If you see a version specifically for your platform, download that version; if not, download the source distribution. If your web browser prompts you for a filename when saving the document, specify mapedit1.5.tar.Z or the filename you selected on the site.
In order to build mapedit, first untar the mapedit.tar file with the following commands:
uncompress mapedit1.5.tar.Z tar -xf mapedit1.5.tarThis will create the directory "mapedit1.5" beneath the current directory.
If you downloaded a binary distribution for your particular system, the file "mapedit" in that directory is the Mapedit program. Please skip to the next section.
If you downloaded the source distribution, cd to the mapedit1.5 directory and examine the Imakefile, which you = may need to change slightly. Specifically, if your default C compiler (the one that executes when you type "cc") does not accept ANSI standard C, you will need to add a line specifying your ANSI C compiler instead. For instance:
CC=3DgccIf you have gcc, the freely available ANSI C compiler.
Now, type "xmkmf". If all goes well, you will now have a Makefile. If this doesn't work, find out how to run Imake on your system from your system's documentation.
Finally, type "make". This will compile and link mapedit.
If you get compilation errors, PLEASE verify that you have the required tools listed above, especially ANSI C and X11R5. If your compiler reports that bad arguments to the compiler were used, or if libraries are not found, your Imake utility is probably not = installed properly; please ask your local system administrator for = help. If you still have problems, feel free to contact me.
The initial mapedit screen has a File menu at the top left and a palette of toggle buttons on the row beneath it. Initially the palette is disabled, since you have not yet opened an image and a map.
Using the mouse, pull down the File menu and select Open/Create Map.... A dialog box will appear, probably in the upper left corner, depending on your window manager.
In this dialog box you should enter the filename you would like to give to your map, which need not already exist, and the filename of a .gif image the map will be of, which must exist. (mapedit is not a paint program. To create your own GIFs, try David Koblas' xpaint; use archie to locate = a copy near you.)
Type in a map filename, such as "test.map", and also enter the location of a GIF image for which you want to create a map. (Give paths in the file system, of course, not URLs!) The characters you type will appear in the field in which = you have placed the mouse pointer.
Also set the Style menu to the appropriate style for your server (CERN or NCSA). NOTE: you can change the default by placing the following line in your .Xdefaults file:
Mapedit*cern: TrueThis change makes CERN the default. If you do not set this resource, NCSA is the default.
Press RETURN or click on OK when you have entered the filenames.
If the map file does not already exist, you will be asked if you want to create it. Click on OK to continue. If the map does exist, mapedit will automatically determine the correct server type regardless of the Style menu setting.
mapedit will now load your GIF image into memory. This will take a few moments, depending on the size of the image.
When the image has been loaded, it will appear in the main mapedit window, which should expand or shrink to suit the image. If the image is large, scrollbars for horizontal and vertical movement may appear. =
You can navigate the image using the scrollbars. If you are using vanilla Athena widgets, you will recognize them as the same type you see in your xterms. If you are using Xaw3d, they will be considerably more Motif-like. =
Click on Poly to begin drawing a polygonal hot spot. Now click the left mouse button at some = point on the edge of an area of interest in the image.
Move the mouse pointer to another point on the edge of the area of interest, tracing its outline. Note that a "rubber-band" line follows you from the point of the initial click.
Click again at this second point. Continue clicking points until you have outlined all but the final connection back to the first point. (You do not need to hold down the mouse button.)
(Note that if you don't like the way your polygon is turning out, you can click the right mouse button to cancel it; then start over with the left mouse button.)
To complete the polygon, click the middle mouse button. =
Another window will pop up, prompting you for the URL that this polygon should link to. If you don't yet know the URL, type in a name that is meaningful to you so you will be able to recognize it later. = Also, if you are creating an NCSA-format map, add any comments = you wish in the comments window. = Click on OK or press RETURN to continue. = (The RETURN key only has this effect in the URL window, since multiple-line comments are allowed in the comments window.)
The polygon will now be traced in solid white, and a final side between the last point and the first point will be automatically added.
Now select Rect from the palette. Click the left mouse button in one corner of a rectangular region of interest in the image. Now move the mouse pointer to the opposite corner, tracing out a rectangle. (You do not need to hold down the mouse button.) =
Click the middle mouse button to accept the rectangle, and= enter a URL for it as you did for the polygon. (Just as for polygons, the right mouse button can be used to cancel the rectangle while you are tracing it out.)
Now select Circle from the palette. Circles work just like rectangles, except that the left mouse click positions the center of the circle, and you can then move the mouse pointer to any point on the edge of the desired circle and click the middle mouse button to accept it. As before, the right button cancels.
Important note: when hot spots overlap, the oldest gets the click. This is important because this is how the actual NCSA imagemap program will behave when your users click on your map in practice.
NOTE: When you delete a hot spot (object), comments associated with that hot spot are also deleted.
You may also, on the other hand, want to get rid of the default URL completely. Once you have set a default URL, a Delete button will appear in the Edit Default URL window. Click this button to remove the default URL.
Note: The testing tool does not indicate when the default URL would be used. It was felt that not popping up anything indicates clearly that the click is not in any hot spot, and displaying the default URL might be misleading.
If a problem is encountered while writing this file (if you entered a bad path when you first created the map, for instance), use the Save As file menu option to enter a new name for the map file. =
However, mapedit will also silently preserve any comments placed at the very end of the imagemap file, and will not delete these comments under any circumstances. =