Nokia Maps API Reference

Contents

Class nokia.maps.gfx.CanvasPainter

Class Summary

An instance of CanvasPainter renders a nokia.maps.gfx.IDL object into a DOM node using a CANVAS tag.

Stable environments for the the canvas painter Nokia has tested include Firefox, Chrome and Safari (on Mac, PC and iOS 4.x). Recognized known issues in certain versions are, as a rule, fixed by the browser vendors at short notice.

To instantiate this class, use the default constructor without arguments:

var myCanvasPainter= new nokia.maps.gfx.CanvasPainter();

Method Summary
abstract createElement (idl, [doc, [opacity]]) : Node This method renders the supplied IDL object and returns a DOM node that can be added to the supplied document.
abstract setOpacity (element, opacity) This method changes the global opacity of an element returned by the method createElement().
abstract updateElement (idl, node, [opacity]) This method updates a DOM node that was previously returned by the method createElement() to the caller-supplied IDL object.
Direct Inheritance
Constructor Detail

This method creates a new instance of a CanvasPainter.

new nokia.maps.gfx.CanvasPainter()
Documentation generated on Thu Feb 09 2012 12:59:02 GMT+0100 (CET).