bindingInfo.addMapping(col, value, geocode)

Specifies the mapping between a value of field col and a defined geographical code, geocode. The geographical codes are defined in the CSV files within inetsoft/graph/geo/data directory of the inetsoft-core.jar file for the corresponding map.

Parameter

col

Field from which value should be mapped

value

Value to be mapped to a defined geo location

geocode

A geographical location in the geo data file

Example

Map the value 'Queens' (in column city) to 'New York City'. Note that the latitude and longitude for code USA0113 are defined in inetsoft/graph/geo/data/us-cities.csv.

Chart1.bindingInfo.addMapping('city','Queens','USA0113');
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.