setPluginData()

The function sets the properties of a plugin.

Synopsis

void setPluginData(string plugin, string property, <type> value)

Parameter

Parameter Description
plugin Name of the plugin
property Name of the property
value Value that should be set

Description

The function sets the value of a specific property for a plugin. Following properties can be set for a plugin:

  • enabled (bool)
  • visible (bool)
  • userCheckable (bool)
  • settings (mapping)

For plugin specific settings of the "settings" property a mapping must be passed with the function containing the plugin-specific settings (see getPluginData()).

Example

mapping newSettings;
newSettings [“gridColor”] = “#ccffff”;
newSettings [“equatorColor”] = “#00ffff”;
Maps_ewo1.setPluginData(“coordinate-grid”, “settings”, newSettings);s

Assignment

Maps Widget

See also

getPluginData()