bindingInfo.getMapLayer(col)

bindingInfo.setMapLayer(col, layer) to set the binding information.

Returns the map layer assigned to a geographic field.

Parameters

col

Field for which layer is desired

Example

var layer = Chart1.bindingInfo.getMapLayer('state')
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.