In this section: |
How to: |
InfoAssist provides a number of territories, out of the box, for Leaflet maps, which are provided through Leaflet Open Source API. These pre-packaged territories are listed in Default Territories and are contained in JavaScript Object Notations (.json) files.
Note: This functionality is only available for maps built with the Leaflet API.
In addition to the out of the box territories that are available, you can also enable other territories for use in creating custom maps. These additional territories are contained in .json or .csv files.
Note: Files in .csv format can be used for latitude and longitude data values. This could be for an exact point or for the centroid of a location. When using .csv files, there is a csvfields field class that is used to specify latitude and longitude values. For example, csvfields='country,lat,lng'. The .csv must have at least latitude and longitude specified. In addition, all fields require the use of quotes and a comma-delimited format.
In order to enable a new territory, you must copy the .json, .csv, or .geojson file to the appropriate directory and then modify the CustomUIMaps.xml file to reference it, as described in the following procedure.
Note: This functionality is only available for maps built with the Leaflet API.
drive:\ibi\WebFOCUS82\webapps\webfocus\tdg\jschart\distribution\map
drive:\ibi\WebFOCUS82\config\web_resource\map
Note:
Map file: This is the .json or .csv file name. For example, uszip3.json.
Name: The label, or identifying name, that displays in the Territory drop-down list when using the Lightweight Mapping functionality. For example, Zip 3.
Layer: Files may have multiple layers in them, such as landmarks and the actual item you want to symbolize. If they do, you must specify which layer to use. In the following example, regions is used.
The name of the territory that you enabled displays in the Territory drop-down list when you create a map chart.
InfoAssist comes pre-packaged with a number of default territories. These include:
drive:\ibi\WebFOCUS82\webapps\webfocus\tdg\jschart\distribution\map