Show Menu
TOPICS×

Creating Image Maps

An Image Map is a region on an image, an eCatalog page, or an image in a SpinSet, that displays a rollover panel with text. When the user clicks an Image Map, an action of some kind is triggered. For example, a web page is launched so that the user can learn more about a product. To call attention to Image Maps, an outline appears around an Image Map when the user moves the pointer over it.
Besides the ability to create an image map in Dynamic Media Classic, or you can also create image maps when you design a catalog in Adobe Acrobat or Adobe InDesign.
When you create Image Maps you can do any of the following:
  • Enter rollover text.
  • Enter JavaScript and URLs for launching web pages.
  • Create URL templates for Image Maps.
  • Copy Image Maps to other images, or eCatalog pages, or SpinSets.
  • Export Image Maps to CSV or to XML.
  • Import image metadata from a tab delimited file or from an XML file.
  • Define other actions as determined by the World Wide Web Consortium.
  • Preview Image Maps.

Drawing and adjusting an Image Map

  1. Do one of the following:
    • If you are working with an image in the Grid View or List View, in the Edit drop-down list click Image Map . Or, open it in Detail View, and then click Image Map above the image.
    • If you are working with a SpinSet in the Grid View or List View, click Edit . Or, open it in Detail View, and then click Edit . Select an image asset, and then click Image Map .
    • If you are working with an eCatalog, in the Grid View, List View, Detail View, click Edit . Click the Map Pages tab.
  2. Draw a rectangular or polygonal (many-sided) Image Map:
    Rectangular map Select the Rectangle Image Map tool and drag on the page to create the rectangle. To add a point to a rectangular map (thus changing it to a polygon map), press Ctrl, then place the insertion tool at the desired location and click.
    Polygonal map Select the Polygon Image Map tool and click points on the perimeter of the area of the image you want to enclose. Use the polygon density slider to vary the point density in the polygon. The original density is remembered if you select other maps. If any point is added, deleted, or moved in the polygon, the original density is lost and the slider is reset to its maximum value.
  3. Enter a name for the Image Map, if desired, in the Image Map list. After you draw an Image Map, Dynamic Media Classic assigns it a name.
    To create the name, Dynamic Media Classic appends a sequential number to the name of the image or eCatalog page you are working with. You can enter a name of your choice.
  4. If you want users to open a new web page when they click the Image Map, enter the URL in the Image Map list.
  5. To display rollover text when users move the pointer over your Image Map, enter the text in the Image Map list. In the Image Map list, select the Show menu and choose Rollover Text. Then enter the text you want users to see onscreen. You can write the text in a word processor and copy it into the Rollover text field.
  6. If you want another action effect to occur when users move the mouse over an Image Map, define the action. In the Show drop-down list, click Other Actions. Enter the attributes of the action. (Click Show > Both to create rollover text and an action for an Image Map.)
  7. (Optional) Do any of the following:
    • Click Preview to preview Image Maps.
    • To delete an Image Map or polygon vertex, select a shape on the image, and then click Delete. Or, for an eCatalog, on the Order Pages tab, click Clear Maps to remove Image Maps from all pages.
    • To temporarily remove an Image Map from an image, an image in a SpinSet, or an eCatalog page, without deleting it, deselect the appropriate On option in the Image Map list.
  8. Click Save.

Adjusting the position, shape, and size of Image Maps

To change the position, shape, and size of an Image Map, select the Image Map button. Then, select the Pan tool and follow these instructions:
Changing position Move the pointer near to but not over the border of the Image Map. When you see the four-headed arrow icon, drag the map to a new location.
Changing the size and shape How you change the shape and size of an Image Map depends on whether you are working with a rectangular or polygonal Image Map:
Tip : You can drag the Size slider at the bottom of the screen to change views and get a better look at your Image Map.
Rectangular Image Map Move the pointer over a side or corner of the Image Map. When you see the double-headed arrow icon, start dragging. Hold down the Shift key as you drag to change size but maintain the aspect ratio (the shape).
Polygonal Image Map Drag a square selection handle. To create a selection handle, click the border of the Image Map and start dragging.

Handling overlapping Image Maps

If your image or eCatalog page includes more than one Image Map and the maps overlap, you can determine how maps overlap. To do so, change the order of maps on the Image Map list. Drag their names higher or lower on the list. How high a name is on the list determines whether its Image Map overlaps other Image Maps.

Importing Image Map data

Rather than enter Image Map data on each page, you can import the data for your image, Spin Set, or eCatalog into the Map Summary screen. You import the Image Map data in the form of a tab-delimited file or XML DTD. The fields in your file must be in the order shown in the Map Summary screen: Name, TOC Labels, Maps, URLs, Rollover Text, Other Actions, and Search Strings. Importing Image Map data saves you the trouble of entering the data in the Image Map List as you create each Image Map.
To import Image Map data
  1. Go to the Image Map editor page (for images or images in SpinSets) or the Map Pages tab of the eCatalog editing screen.
  2. Click Import Metadata.
  3. In the Upload Metadata dialog box, click Image or Image Map to upload the metadata from desired asset property type.
  4. In the Generate File drop-down list, select the type of file that you want to create.
  5. (Optional) Click Generate to preview the resulting data based on the type of file you want to create. Click Close to return to the Upload Metadata dialog box.
  6. Browse to the file that you want to upload. In the File Name text field, specify the name of the generated file.
  7. (Optional) In the Job Name field, specify a name for the metadata upload job.
  8. Click Upload.

Copying Image Maps

You can copy Image Maps from an image or an eCatalog page to another. Use Copy Image Map to get a head start creating them. You can also copy Image Maps to re-create them in images or pages that share the same layout or mapping structure.
For example, copying Image Maps in an eCatalog is a convenient way to copy all image maps between foreign language versions of the same eCatalog. For best results, copying is most successful if you copy between eCatalogs with the same number of pages and same images. If the eCatalog to which you copy already contains Image Maps, be aware that those Image Maps are deleted when the copy is made.
To copy Image Maps
  1. Go to the Image Map editor page (for images or images in SpinSets) or the Map Pages tab of the eCatalog editing screen.
  2. Click Copy Maps to.
  3. Do one of the following, based on if you are copying Image Maps from images or copying Image Maps from an eCatalog:
    • (Images) In the Select Images screen, select the images that you want to copy the Image Maps to.
    • (eCatalog) In the Select Asset screen, select the images or eCatalog pages that you want to copy the Image Maps to.
  4. Click Select.

Using a template to enter JavaScript and URLs

You can define a URL template (also known as an Href template) to make entering Image Map URLs easier and more efficient. Define a URL template if most of your Image Map URLs share a common, fixed format. By entering the portion of the URL that is fixed as the URL template, you do not have to enter this portion of the URL each time you create an Image Map. Your URL Template can also contain JavaScript commands, pathnames, and parameters. By default, the URL template contains a proprietary Dynamic Media Classic JavaScript handler called loadProduct that opens the image in a new window.
Be aware that when you add the Javascript code into the HREF attribute of your image map, the code is run on the client's computer. Therefore, make sure that the Javascript code is secure.

About URL templates

The URL template works by substituting the contents of the URL column in the Image Map list with the double dollar signs (‘$$’) in the template:
Javascript:loadProduct(‘$$’);void(0);

You place all of the values that do not change between Image Maps in the URL template. Add only the values that do change in the URL column in the Image Map list. For example:
  • URL template: j avascript:loadProduct(‘https://www.examplesitehere.com/$$’);void(0);
  • URL value: product.htm
  • Actual URL generated: javascript:loadProduct(‘https://www.examplesitehere.com/product.html);void(0);
By default, the URL template includes a proprietary Dynamic Media Classic JavaScript handler called loadProduct that opens a new window with the URL destination. However, you can use any JavaScript code to replace this JavaScript handler or use one of the following Dynamic Media Classic handlers:
  • loadProductCW
    Displays the URL target specified in the URL column in the current window. This handler is primarily for eCatalogs that are integrated into a page within a website.
  • loadProductPW
    Displays the URL target specified in the URL column in the parent window (the page that opened the current one). The current window remains open, but the parent window changes to display the URL target.
    note : The handler loadProductPW does not support DHTML and HTML5 viewers.

Creating a URL template

To create a URL template:
  1. On the Map Editor screen (images or SpinSets) or the Map Pages tab of the eCatalog screen (eCatalogs), select Edit next to the URL Template option. The Edit Map Template dialog box opens.
  2. Enter the JavaScript code and the complete URL (with the variable portion replaced by dollar signs #). You can paste the code by right-clicking and choosing Paste.
  3. Select the Save button.

Handling URL templates

The Map Editor page (images and SpinSets) and the Map Pages tab of the eCatalog screen (eCatalogs) offer these commands for handling URL templates:
URL Template option Select the URL Template option to apply your URL template to all the Image Maps on an image or eCatalog page.
Template option Deselect a Template option in the URL Image Map list if you do not want an individual Image Map to use the URL template.

Defining other actions for Image Maps

You can select the Show menu and choose Other Actions to trigger actions other than rollover text and web page launches. When the user moves the pointer over an Image Map, you can initiate an action. These actions are attributes defined for client-side Image Maps by World Wide Web Consortium HTML specifications. They include:
accesskey Triggers an action when the user presses a designated key on the keyboard.
onfocus Triggers an event when the Image Map receives focus—by the cursor, by tabbing, or by pressing an access key. For example, you can launch a web page when the Image Map receives focus and close it when your Image Map loses focus.
onblur Triggers an event when the Image Map loses focus, either by the cursor or by tabbing.
To define other actions for Image Maps
  1. On the Map Editor screen (images and SpinSets) or Map Pages tab of the eCatalog screen (eCatalogs), select the Show menu and choose Other Actions.
  2. Using the syntax specified by the World Wide Web Consortium HTML specifications, add the supported attributes in the Other Actions column of the Image Map list.
  3. Click Save .
Select the Show menu and choose Both if you want an Image Map to have rollover text as well as an action.

Creating Image Maps in Adobe Acrobat or Adobe InDesign

You can create Image Maps while designing your eCatalog in Adobe Acrobat or Adobe InDesign.
In Acrobat or InDesign, create hyperlink references where you want the Image Maps to appear, and specify URL locations for the image map. Selecting the Extract Links option when uploading the PDF file into Dynamic Media Classic automatically converts the links to Image Maps.
For more information, see InDesign Help or Acrobat Help.

To create Image Maps in Adobe InDesign

  1. In InDesign, click Window > Interactive > Hyperlinks to open the Hyperlinks panel.
  2. Select the text, frame, or graphic that you want to make into an Image Map.
  3. In the Hyperlinks panel, click New Hyperlink from the panel menu.
  4. In the New Hyperlink dialog box, choose URL from the Link To menu.
  5. Type or paste the product ID in the URL box, and click OK. (Dynamic Media Classic completes the URL using the Image Map URL template.)
    You do not need to set appearance options in InDesign. You can specify appearance in Dynamic Media Classic.
  6. Repeat steps 2 through 5 for all the Image Maps you want to create.
  7. Export the file as a PDF.
  8. Upload the PDF to Dynamic Media Classic and select Extract Links from the PDF Options.

To create Image Maps in Adobe Acrobat

  1. In Acrobat, choose Tools > Advanced Editing > Link Tool.
  2. Drag to create the Image Map. The Create Link box opens.
  3. Select Custom Link, and click Next.
    note : You do not need to set appearance options in Acrobat. You can specify appearance in Dynamic Media Classic.
  4. In the Link Properties box, click Actions.
  5. Select Open A Web Link from the Select Action menu, and then click Add.
  6. Type the product ID for the Image Map in the Edit URL box, and click OK. (Dynamic Media Classic completes the URL using the image map URL template.)
  7. Repeat steps 1 through 7 for all the Image Maps you want to create.
  8. Save the file.
  9. Upload the PDF to Dynamic Media Classic and select Extract Links from the PDF Options.