Map Editor

Map Editor lets you edit and manage map charts. There two types of map charts:

  1. Maps that come with the application and stored as XML files in C:\inetpub\wwwroot\ReportPortal\olap\Maps folder. Map Editor lets you view these map types.
  2. Maps created or imported by application administrator and stored in ReportPortal database GeoMap table. These type of maps will be marked green. Map Editor lets you view, create delete and edit these map types.

An entity is a group of shapes. For example, UK entity will consist of four shapes (England, Northern Ireland, Scotland and Wales.) You can select an entity by choosing it from the list of entities or by clicking a shape. When an entity is selected you will see one or more boxes on the right. Each box represents a shape. Each line of text box is the coordinate (x,y) of the shape.

Buttons:

  1. Apply - Apply changes made to the map
  2. Save - Save the selected map
  3. Delete - Delete the selected saved map
  4. Delete All - Delete all saved maps
  5. New Entity - Create new entity such as a US State.
  6. Draw - Show toolbar to create new shapes and delete and move existing shapes.
  7. Resize - Trim unused space around shapes
  8. Trim - Remove small shapes
  9. Import - Import maps from XML or ZIP files
  10. SHP - Import ESRI shape files
  11. Export - Export map to XML format
  12. Export All - Export all changed maps to one zip file
  13. US Maps - Download Drillable US Map

Chart Options:

Entity options:

Below is the description of the XML file format:

Name Description Sample Data
image Optional. Background image relative to the Maps folder (C:\Inetpub\wwwroot\ReportPortal\olap\Maps). USA.gif
opacity Polygon transparency. Especially useful when a background image is defined. 60%
strokeWeight Polygon border width 1
strokeColor Polygon border color black
highlightColor Color used for the mouse over effect blue
legendPercentBased 1 - Legend will show percents;
0 - Legend will show numbers
1
positiveColors List of colors to be used in the legend for the positive number range. <#DEFFDE>
<#BDFFBD>
negativeColors List of colors to be used in the legend for the negative number range. <#FFDEDE>
<#FFBDBD>
entity

Each map file can have many entities. For example, in United States each entity can represent each state.

Name Description Sample Data
code Code of the entity. Used for mapping the data to the entity. Will be visible when x and y attributes are specified. ND
name Name of the entity. Used for mapping the data to the entity. Will be visible on mouse-over effect. North Dakota
action Path to another MAP file that has details for the next drill-down level. Each file is relative to the Maps folder (C:\Inetpub\wwwroot\ReportPortal\olap\Maps). USStates/ND.xml
x Optional. X coordinate for the "code" label 315
y Optional. Y coordinate for the "code" label 230
outside Is label outside of shape? When 1 the label will be black. 1
path X,Y pair list. Each path represents a polygon. Each entity can have multiple polygons. For example, Michigan state is made out of two polygons. 214,27,212,27,206,27...