Oxygen XML Author Eclipse plugin includes support for image maps in DocBook documents
through the use of the <areaspec> element. This feature provides an easy way to
create hyperlinks in various parts of an image without having to divide the image into
separate image files. The visual Author editing mode includes an
Image Map Editor that helps you to easily create and configure image
maps.
New
Rectangle
Duplicate
Delete
Undo
Redo
Show/Hide
Numbers
Bring Shape to
Front
Bring Shape
Forward
Send Shape
Backward
Send Shape to
Back
Color
Chooser
Zoom
SliderThis main Image Pane is where you work with shapes to add hyperlinks to multiple areas within an image. The editing mechanisms that are supported in the Image Pane include the following:
You can right-click the shapes, or anywhere in the Image Pane to invoke the contextual menu where the following actions are available:
Duplicate
Delete
New
Rectangle
Undo
Redo@xml:id attribute for the particular <area>
element.
Link
drop-down menu to the right of the text field. You can choose between the
following types of links: Cross Reference or
Web Link. Both types open a dialog box that allows
you to select the target resource and it is inserted as the value of an
@xlink:href attribute.Right-click the image and select Image Map Editor.
Step Result: This action will apply an image map to the current image and open the Image Map Editor dialog box.
New Rectangle button.
Link drop-down menu to
select a target resource (or enter its path in the Target
text field).
New Rectangle button again and repeat
the appropriate steps.<alt>
element, its value will be displayed above the image. The following two buttons will also
now be available at the top of the image in Author mode:<area> elements, you can use <areaset> elements. To
add <areaset> elements, and <area> elements to the
areasets, switch to Text mode and insert them manually.
If shapes overlap one another in the Image Map Editor, the one on
the top layer takes precedence. The number shown inside each shape represents its layer (if
the numbers are not displayed, click the
Show/Hide Numbers button on the Image Map Editor toolbar). To change the layer
order for a shape, use the layer buttons on the Image Map Editor toolbar (
,
,
,
).
If you insert a shape and all of its coordinates are completely inside another shape, the Image Map Editor will display a warning to let you know that the shape is entirely covered by a bigger shape. Keep in mind that if a shape is completely inside another shape, its hyperlink will only be accessible if its layer is on top of the bigger shape.