Inserting a Shape Map
A shape map can be inserted into a tabular cell or the banded header/footer, group header/footer, or banded page header/footer panel of a banded object in a page report.
To insert a shape map into a page report:
- Select a tabular cell, or the appropriate banded panel of a banded object in the page report.
- Do any of the following:
- Drag the Insert Shape Map button from the Components panel to the destination.
- Select Insert > Map > Shape Map.
- Select Home > Insert > Map > Shape Map.
The Shape Map Editor appears.
- To use an image as background of the map, select Menu> Insert > BackgroundImage. In the Shape Map Background Image dialog, select to specify the image and select OK.
- Next is to add areas to the map. You can do this either by importing from an previously saved XML file or an ESRI file which has been defined with some area information, or by drawing the areas manually, or using a combination of these two.
- To import the predefined map areas, select Menu > File > Open, then in the Import Shape Map Area dialog, specify the .xml file or .shp file that contains the required area information and select Open to import the areas. If you choose to import the map areas from a .shp file, you need to further specify a field in the ESRI shape file to define area name of the map, and if required, you can also select fields from the ESRI shape file to define the area tooltips (for more information, see Select Area Name dialog).
- To draw the areas manually, select Insert Mode on the toolbar, or Menu > Edit > Insert Mode to switch the Shape Map Editor to the mode.
To draw an area, select the left mouse button to pick the start point of the area. Move the mouse pointer and select the left mouse button to select the other points. The points will be connected automatically. When you move the mouse pointer to the start point, a square appears indicating that the area will be closed. Select the left mouse button to finish drawing the area. If you want to undo your last line, select the right mouse button.
- If you want to further change the shape or position of the areas, select Insert Mode on the toolbar again to switch the Shape Map Editor to edit mode.
To change the shape of an area, move the mouse pointer over the border or the points of the area. When it becomes a cross, choose a point on the line and drag it to create a new point. You can also choose a point of the area and drag it to a new position. If there are three points on one line, the middle point will be deleted automatically.
To move an area, move the mouse pointer close its border. When it changes to a four-headed arrow, drag the area to a new position.
Tip: If you have specified a background image for the map, and the size of it is not the same as that of the map object, you can select Menu > Insert > Match Background Image in the Shape Map Editor to resize the map object so as to make it match the size of the background image.
- Bind data to the map areas so as to show values on the areas.
- Add some conditional formats to the map areas.
- Make the map areas link to different targets.
- In the Map Area Inspector panel, edit properties of any area, label, summary field and line in the map if necessary. Select to search for the required property using the quick search toolbar if needed.
For areas, labels and summary fields, you can specify the properties globally and apply the global settings to individual ones conveniently. To specify area, label or summary field properties globally, select the corresponding sub node under the Map Global Setting node in the Map Area Inspector tree, then edit the property values accordingly.
To make a specific area, label or summary field adopt the global settings, select it in the inspector tree, then set its Use Global Setting property to true. If you want the global settings to be applied to all the areas, labels or summary fields at a time, select Menu > Edit > Reset All, then in the Reset All dialog, specify the properties according to your requirements.
- If you want to save the area information you have defined in a file for future use, select Menu > File > Save As in the Shape Map Editor. In the Save Map Area dialog, specify the directory where you want to save the file and a name for it, then select Save. Later when you create a report with a map, you can choose to import areas from the saved XML file.
- Select Save to save the changes to the map and close the Shape Map Editor.
- Select the mouse button in the tabular cell, or banded panel to insert the map.