To insert a Google map in a report or a library component, take the following steps:
A Google map can be inserted into the page report areas listed in Component placement, a blank library component or the blank tabular cell in a web report.
<install_root>\gisinfo
directory. The geographic data XML file is used to map the geographic latitude and longitude coordinates from Google Maps based on the location information specified for each group in the Marker tab. When the location information key string of a group value matches the "nm" field in the XML file, you will get the related latitude and longitude value for this group value.
You can also import an XML file which contains predefined geographic data including latitude and longitude for the specific "nm" field. By default, the XML file is located in the <install_root>\gisinfo
directory, if not, the file will be copied to this directory after it is imported. When you publish the report from Designer you can specify the gisinfo files to publish to the Server from the Geographic Information tab.
If you do not publish the geographical information it will be created automatically when you first run the report.
Then specify the map type from the Map Type drop-down list, it could be roadmap, satellite or terrain.Specify the location of the marker by selecting a DBField or a formula from the Location Info drop-down list which contains the values matching the "nm" field in the geographic data XML file. The values seen in this Location Info field will be used to create the "nm" field values when the XML does not already exist.
Then set the tip information which displays when you hover the mouse on the marker at runtime by typing it in the Marker Tip text field directly, you can also use a formula to control the tip.
In the Web Behaviors box, select a trigger event from the drop-down list in the Events column and click in the Actions column to open the Web Action List dialog, where you can bind a web action to the Google map marker such as Parameter, Filter, Sort, Property, SendMessage which will be triggered when the specified event occurs on the marker. To add a web action line, click
, and if a web action is not required, click
to remove it. Click
or
to adjust the order of the actions. Then, when an event that has been bound with more than one action happens, the upper action will be triggered first.
If you have used the menu or toolbar command to insert the Google map into a page report, and specified to insert it to position other than the report body or tabular cell, after clicking Finish in the wizard, you need to drag it to the destination using your mouse in order to insert the Google map where you want it.
See also Create Google Map wizard for additional help about options in the wizard.
After a Google map has been created, you can customize its appearance and behavior by setting properties in the Report Inspector, which can be saved as a CSS style for future use (for details, see Creating a CSS style).