Showing territory outlines is available for a map if the following conditions are satisfied:
A territory dimension is hierarchical.
A territory dimension contains attributes of integer type with the TOPO_IDN identifier where N is the level of territory dimension hierarchy, for which elements outline will be shown. If N=1, the TOPO_ID attribute is used.
The TOPO_IDN attribute contains key of the map that is used for outline visualization corresponding to the hierarchy level of territory dimension.
NOTE. Showing territory outlines is available in the Analytical Queries (OLAP) and Dashboards tools.
A map is used to show territory outlines, which key is specified in the TOPO_IDN attribute corresponding to the hierarchy level. This attribute is taken from the parent of selected elements of territory dimension, which is the closest to the top of the hierarchy and for the root element of the hierarchy the attribute is taken from the element. If the map with the TOPO_IDN key is not found, the closest parent map is taken by the following scheme: TOPO_IDN → TOPO_IDN-1 → … → TOPO_ID3 → TOPO_ID2 → TOPO_ID.
For example, there is a territory dimension containing the World root element. The World element contains the Europe and Asia child elements of the continents level. Each continent has child elements of the countries level: France and Russia. Each country has child elements of districts level: Bordeaux, Central Federal District.
The following structure will be used to show territory outlines for this territory dimension:
Hierarchy level/Map | Map for TOPO_ID | Map for TOPO_ID2 | Map for TOPO_ID3 | Map for TOPO_ID4 |
World | World by continents | World by countries | World by country districts | World by district regions |
Continents |
Continent by countries | Continent by country districts | Continent by district regions | |
Countries |
Country by districts | Country by district regions | ||
Districts |
District by regions |
The examples of values of TOPO_ID attributes are given in the table:
Elements | TOPO_ID | TOPO_ID2 | TOPO_ID3 | TOPO_ID4 |
World | 100 | 102 | 103 | 104 |
Europe |
200 | 202 | 203 | |
France |
300 | 302 | ||
Bordeaux |
400 | |||
Asia |
500 | 502 | 503 | |
Russia |
600 | 602 | ||
Central Federal District |
700 |
Logic of getting a map for showing territory outlines:
When all levels by the hierarchy are selected:
When the root element of the hierarchy is selected, the TOPO_ID map of the root element of the hierarchy is shown, that is, when the World element is selected, the map with the 100 key is shown.
When the root element and elements of the second level of the hierarchy are selected, the TOPO_ID2 map of the root element of the hierarchy is shown, that is, when the World and Europe elements are selected, the map with the 102 key is shown.
When the root element and elements of the second and the third levels of the hierarchy are selected, the TOPO_ID3 map of the root element of the hierarchy is shown, that is, when the World, Europe and France elements are selected, the map with the 103 key is shown.
When the root element and elements of the second, the third and the fourth levels of the hierarchy are selected, the TOPO_ID4 map of the root element of the hierarchy is shown, that is, when the World, Europe, France and Bordeaux elements are selected, the map with the 104 key is shown.
When the root element and elements of the second, the third, the fourth and the fifth levels are selected, the TOPO_ID5 map of the root element is shown, and so on.
When levels by hierarchy levels are partially selected:
When elements of the second level are selected without selecting the root element of the hierarchy, the TOPO_ID2 map of the root element of the hierarchy is shown, that is, when the Europe and Asia elements are selected, the map with the 102 key is shown.
When elements of the second level and the third level are selected without selecting the root element of the hierarchy, the TOPO_ID3 map of the root element of the hierarchy is shown, that is, when the Europe, Asia and France elements are selected, the map with the 103 key is shown.
When one element of the second level is selected without selecting the root element of the hierarchy, the TOPO_ID map of the selected element of the second level is shown, that is, when the Asia element is selected, the map with the 500 key is shown.
When one element of the second level is selected and one or more child elements of the third level are selected, the TOPO_ID2 map of the selected element of the second level is shown, that is, when the Asia and Russia elements are selected, the map with the 502 key is shown.
When one element of the second level is selected, and one or more child elements of the third level are selected, and elements of the fourth level are selected, the TOPO_ID3 map of the selected element of the second level is shown, that is, when the Asia, Russia and Central Federal District elements are selected, the map with the 503 key is shown.
When one element of the third level and several child elements of the fourth level are selected, the TOPO_ID2 map of the selected element of the third level is shown, and so on.
See also:
Basic Requirements for Working with Map | Showing Territory Outlines