set_data_source


Description:

[ Version ( since = "1.2" ) ]
public void set_data_source (string name, DataSource data_source)

Adds a data source to the renderer.

Currently, [class@VectorRenderer] only supports one data source and throws an error if the style does not contain exactly one data source. However, support for multiple sources may be added in the future, so this method accepts a name parameter. If the name does not match the one expected by the style, this method will have no effect.

Parameters:

this

a [class@VectorRenderer]

name

the name of the data source

data_source

a [class@DataSource]