A method to change the drawing handler of the custom canvas after it has been created on the map.
Parameter |
Value |
function: name |
An asynchronous JavaScript function that implements the logic when the function call returns. |
Example:
function drawHandler(map, context, item, status)
{
//context = Canvas context.
//item = The custom canvas object.
//status = object having information about the drawing status.
var s = status.animation; //Drawing function is being called from animation frame (true) or not (false).
}
customCanvas.setDrawHandler(drawHandler);