Map Regions Tooltips Configurations

Overview

Tooltips for Map Regions are just the same tooltips that can be configured for any other chart type, there are just two differences: you can use keywords provided by the map source and you can configure tooltips for undefined regions.

To learn about Tooltips in general please refer to: Tooltips text and formatting tutorial.

to top

Tooltips for Map Regions

When you have some data attached to your maps (you have <series type="MapRegion">) you can create labels of desired format and use data provided by the map as well as your custom data attached.

In the sample below we will display a map of Germany with Federal states statistics attached - it can be viewed in tooltips on states hover.

Live Sample:  Flash Map of Germany with tooltips demonstration

to top

Tooltips for Undefined Regions

Even when you have no data attached to map regions you can show tooltips with data provided by the map (or add custom text). This is usefull when you are creating, for example, navigation control for you site. On the sample below we will attach tooltips with region names to the map of Japan and attach an action to all region that will launch a JavaScript function.

To set anything (including tooltips) for regions that don't have any data attached you should use <undefined_map_region> node of <map_series>:

XML Syntax
Plain code
01 <undefined_map_region>
02   <tooltip_settings enabled="True">
03     <format><![CDATA[{%REGION_NAME}]]></format>
04   </tooltip_settings>
05   <actions>
06     <action type="call" function="alert">
07       <arg><![CDATA[A new window with Wikipedia page about {%REGION_NAME} will be now opened.]]></arg>
08     </action>
09     <action type="navigateToURL" url="http://en.wikipedia.org/wiki/{%REGION_NAME}" target="_blank" />
10   </actions>
11 </undefined_map_region>

 

Live Sample:  Flash Map of Japan with tooltips

to top