Image Maps in TEI
facsimile element. In TEI documents, this feature provides an
easy way to create areas (using zone elements) in an image where the end user
can hover or click to retrieve more information about that particular area of the image. The
visual Author editing mode includes an Image Map
Editor that helps you to easily create the areas in the image.Figure: Image Map Editor in TEI
Image Map Editor Interface in TEI
- Toolbar
-
New
Rectangle- Use this button to draw a rectangular shape over an area in the image. You can drag any of the four points to adjust the size and shape of the rectangle.
New Polygon- Use this button to draw a polygon shape over an area in the image. This actions opens a dialog box that allows you to select the number of points for the polygon. You can drag any of the points to adjust the size and shape of the polygon.
Duplicate- Use this button to create a duplicate of the currently selected shape.
Delete- Use this button to delete the currently selected shape.
Undo- Use this button to undo the last action.
Redo- Use this button to redo the last action that was undone.
Show/Hide
Numbers- Use this button to toggle between showing or hiding the numbers for the shapes.
Bring Shape to
Front- Use this button to bring the currently selected shape forward to the top layer.
Bring Shape
Forward- Use this button to bring the currently selected shape forward one layer.
Send Shape
Backward- Use this button to send the currently selected shape back one layer.
Send Shape to
Back- Use this button to send the currently selected shape back to the bottom layer.
Color
Chooser- Use this drop-down menu to select a color scheme for the lines and numbers of the shapes.
Zoom Slider- Use this slider to zoom the image in or out in the main image pane.
- Image Pane
- This main image pane is where you work with shapes to add areas (zones) within an image. Use the mouse to move shapes around in the image to the desired area and drag the points on a selected shape to adjust its size and shape. It is easy to see which shape is selected in this image pane because the border of the selected shape changes from a solid line to a dotted line.
- Area Properties
How to Create an Image Map in TEI
- The image (
graphic) must be inside afacsimileelement to support the Image Map Editor feature. - Right-click the image and select Image Map Editor.
Result: This action will apply an image map to the current image and open the Image Map Editor dialog box.
- Add areas (zones) in the image by selecting one of the shape buttons
(
New Rectangle or
New Polygon). - Move the shape to the desired area in the image and drag any of the points on the shape to adjust its size or form. You can use the other buttons on the toolbar to adjust its layer and color, or to perform other editing actions.
- With the shape selected, enter an ID.
- If you want to add more areas (zones) to the image, select a shape button again and repeat the appropriate steps.
- When you are finished, click OK to process your changes.
How to Edit an Existing Image Map in TEI
zone elements contain additional content (such as text or
comments) and you edit the image map, the Image Map Editor does not
preserve the additional content. Therefore, if you do need to insert additional content
inside the zone elements, you should do so after the image map has been
created and finalized. Subsequent changes to the image map should then be done in
Text mode.Overlapping Areas
If shapes overlap one another in the Image Map Editor, the one on
the top layer takes precedence. The number shown inside each shape represent 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.