SiteWatch API Help

updateConfig

updateConfig

Previous topic Next topic  

updateConfig

Previous topic Next topic  

A method to update a custom canvas configuration in a map location.

 

Parameter

Value

config:

Configuration.

 animated: boolean (default=false)

Defines whether the custom canvas is animated or not.

If it is set as true then the canvas will be animated and the drawHandler of the custom canvas will be called for every frame.

zIndex: integer

Defines the z-index of the canvas.

 

Example:

var newConf = customCanvas.GetConfig(); 

 

newConfig.animated = true;

newConfig.zIndex = 1;

 

customCanvas.updateConfig(newConf);