ActiveReports 9 > ActiveReports User Guide > Concepts > Page Report/RDL Report Concepts > Toolbox > Map |
The Map data region is a professional edition feature that shows your business data against a geographical background. You can create different types of map, depending on the type of information you want to communicate in your report.
The Map data region consists of the following basic elements:
Title
Map Title describes the theme or subject of the map. The purpose of map title is to tell the viewer of what he is looking at. You can add multiple titles to the Map using the MapTitleDesigner Collection Editor.
For more information, see Create a Map.
Viewport
Viewport refers to the area on the map where data is displayed against a geographical background. It specifies the coordinates, projection system, parallels and meridians, center point, and scale of the map. In other words, it is a map element that actually displays geographical data and occupies most area of the map control depending on the location and dock position of other map elements. For more information, see Create a Map.
The Map Viewport dialog lets you set properties with the following pages.
General
Coordinate system: Specify the coordinate system of the viewport. Select from Planar, Geographic, or select the <Expression...> option to open the Expression Editor and create an expression.
Projection: Specify the projection of the map. Tile layers must use the Mercator projection.
Minimum X: Specify the minimum X coordinate of the map in degrees.
Maximum X: Specify the maximum X coordinate of the map in degrees.
Minimum Y: Specify the minimum Y coordinate of the map in degrees.
Maximum Y: Specify the maximum Y coordinate of the map in degrees.
Projection Center X: Specify the X coordinate of the projection center in degrees.
Projection Center Y: Specify the Y coordinate of the projection center in degrees.
Minimum zoom: Specify the minimum zoom value.
Maximum zoom: Specify the maximum zoom value.
Map resolution: Enables the viewport to simplify vector data for polygon and line layers.
Show grid lines below the map: Specify whether to show the grid lines above or below the content of the map.
Meridians
Hide meridians: Specify whether to hide meridians.
Interval: Specify the spacing between the grid lines in degrees.
Line
Show labels: Specify whether to show labels for meridians on the map.
Format: Specify the format string to display numeric labels.
Position: Specify the position of the meridians on the map.
Font
Parallels
Hide parallels: Specify whether to hide parallels.
Interval: Specify the spacing between the grid lines in degrees.
Line
Show labels: Specify whether to show labels for parallels on the map.
Format: Specify the format string to display numeric labels.
Position: Specify the position of the parallels on the map.
Font
View
Center and zoom: Specify how the map viewport zooms and centers during the report processing.
View Center X: Specify the X coordinate of the current view center.
View Center Y: Specify the Y coordinate of the current view center.
Zoom level: Specify the zoom level of the map view.
Appearance
Border
Background
Shadow offset: Specify the size of the shadow. Shadow offsets are drawn to the right and below an element.
Legend
A legend on a map provides valuable information to users for interpreting the map data visualization rules such as color, size, and marker type differences for map elements on a layer. By default, a single Legend item already exists in the legends collection which can be used by all layers to display items. You can also create additional legends to use them individually with layers that have associated rules to display items in the legend.
Legends are added in the LegendDesigner Collection Editor. For more information, see Create a Map.
Distance Scale
A distance scale helps a user to understand the scale of the map. Distance on a map is not the same as the actual real-world distance, so a distance scale shows that a certain distance on the map equals a certain distance in a real-world. In distance scale, the distance is displayed in both miles and kilometers. The scale range and values are automatically calculated using the viewport boundaries, projection type, and zoom level. For more information, see Create a Map.
The Map Distance Scale dialog lets you set properties with the following pages.
Note: You can select <Expression...> within these properties to create an expression to determine the value. |
General
Location
Scale
Appearance
Border
Background
Shadow offset: Specify the size of the shadow of the distance scale panel. Shadow offsets are drawn to the right and below an element.
Font
Family: Choose the font family name.
Size: Choose the size in points for the font.
Style: Choose Normal or Italic, or select the <Expression...> option to open the Expression Editor and create an expression.
Weight: Choose from Lighter, Thin, ExtraLight, Light, Normal, Medium, SemiBold, Bold, ExtraBold, Heavy, and Bolder.
Color: Select a Web or custom color for the font.
Decoration: Choose from None, Underline, Overline and LineThrough, or select the <Expression...> option to open the Expression Editor and create an expression.
Visibility
Initial visibility
Navigation
Action
Select one of the following actions to perform when a user clicks on the distance scale element.
Color Scale
A color scale helps a user to understand the range of colors that are used for data visualization on a layer. A map has just one color scale and multiple layers can provide data for it. For more information, see Create a Map.
The Map Color Scale dialog lets you set properties with the following pages.
Note: You can select <Expression...> within these properties to create an expression to determine the value. |
General
Location
Color bar
Labels
Display: Specify whether to display color scale labels on the color scale panel. Select from Auto, ShowMiddleValue, ShowBorderValue, or select the <Expression...> option to open the Expression Editor and create an expression.
Hide end labels: Specify whether to display first and last labels on the color scale panel.
Format: Specify the format string to display numeric labels.
Placement: Speciy the position of the color scale labels on the color scale panel. Select from Alternate, Top, Bottom, or select the <Expression...> option to open the Expression Editor and create an expression.
Interval: Specify the frequency of the labels on the color scale panel. A value of 0 means no labels are displayed.
Tick mark length: Specify the length of the tick marks on the color scale panel.
Title
Text: Specify the text of the color scale panel.
Font
Appearance
Border
Background
Shadow offset: Specify the size of the shadow of the color scale panel. Shadow offsets are drawn to the right and below an element.
Font
Family: Choose the font family name.
Size: Choose the size in points for the font.
Style: Choose Normal, Italic or select the <Expression...> option to open the Expression Editor and create an expression.
Weight: Choose from Lighter, Thin, ExtraLight, Light, Normal, Medium, SemiBold, Bold, ExtraBold, Heavy, and Bolder.
Color: Select a Web or custom color for the font.
Decoration: Choose from None, Underline, Overline, LineThrough, or select the <Expression...> option to open the Expression Editor and create an expression.
Visibility
Initial visibility
Navigation
Select one of the following actions to perform when a user clicks on the color scale element.
The Map dialog lets you set properties on the report control with the following pages.
Note: You can select <Expression...> within these properties to create an expression to determine the value. |
General
Name: Enter a name for the map that is unique within the report. This name is called in code.
Tooltip: Enter the value or expression you want to display when a user hovers the cursor over the map in the viewer at run time.
Antialiasing: Select the smoothing mode to apply to all map control elements. Choose All, None, Text, Graphic, or select the <Expression...> option to open the Expression Editor and create an expression.
Antialiasing quality: Select the quality for antialiasing. Choose High, Normal, SystemDefault, or select the <Expression...> option to open the Expression Editor and create an expression.
Visibility
Initial visibility
Visibility can be toggled by another report control: Select this check box to display a toggle image next to another report control. This enables the drop-down box below where you can specify the TextBox control that toggles the visibility of the map. The user can click the toggle item to show or hide this map.
Appearance
Border
Background
Data Output
Element name: Enter a name to be used in the XML output for this map.
Output: Choose Auto, Yes, or No to decide whether to include this map in the XML output. Choosing Auto exports the contents of the map.
A map is a collection of layers that display data on the map control.
A map can have one or more layers. You can load these layers on top of each other to create a more detailed map. For example, a polygon layer can represent the borders of a country, a line can represent transportation routes, a point can represent the locations and a tile can add a virtual earth background on the map. See, Use Layers for more information.
Map layer element appearance:
The Map layer Data dialog is used to set up spatial and analytical data for the map control. For more information on spatial and analytical data, see Work with Data.
Or, in case you already have a layer added to the map control, then follow these steps:
General
Spatial data source: Select one of the spatial data source connection types:
Embedded: The map layer data is loaded from the .shp data source that you embed into the map layer by indicating the .shp file in the Import spatial data from file: field. This field appears below when you select this option.
Spatial fields: Use the plus sign button to add a field, and the X button to delete a field. For each newly added spatial field, you must specify the name and type in the corresponding fields below.
Field name: Enter a name of a spatial field.
Field type: Select the type of a spatial field from the list.
Caution: In Field name, simply type the name of the dataset field that contains spatial data. For example, enter the dataset field name as StateName, not as =[StateName]. |
Caution: In Field name, enter the data field name as =[StateName], not as StateName. |
Analytical Data
Dataset: Select the dataset for the analytical data to be displayed on the map layer.
Match: Use the plus sign button to add a relationship between a spatial data field and an analytical data field.
Spatial field: A field with spatial data that specifies an element on the map surface, for example, boundaries of a country.
Analytical field: A field with analytical data that displays information on the related map element, for example, the country population.
Filters
The Filters page of the Map Layer Data Properties dialog allows you to filter the data that is included in the map. Use the plus sign button to add a filter, and the arrow and X buttons to move or delete filters. You need to provide three values to add a new filter to the collection.
Expression: Enter the expression to use for evaluating whether data should be included in the map.
Operator: Select from the following operators to decide how to compare the expression to the left with the value to the right:
Value: Enter a value to compare with the expression on the left based on the selected operator. For multiple values used with the Between operator, the lower two value boxes are enabled.
Values: When you choose the In operator, you can enter as many values as you need in this list.
Value: Enter a value to compare with the expression on the left based on the selected operator. For multiple values (used with the In and Between operators) separate values using commas.