Maps API for JavaScript Developer's Guide

H.util.ICapturable

Interface Summary

This is an interface for capturable elements.

[ For full details, see the Interface Details ]

Method Summary

Table 1. Methods
Methods

capture (canvas, pixelRatio, callback, opt_errback)

This method is used to capture the element view.

Interface Description

This is an interface for capturable elements.

Method Details

capture (canvas, pixelRatio, callback, opt_errback)

This method is used to capture the element view.

Parameters:
 
canvas:
{HTMLCanvasElement}
 
The HTML Canvas element to draw the view of the capturable element
pixelRatio:
{number}
 
The pixel ratio to use for over-sampling for high-resolution displays, the default is 1
callback:
{function(HTMLCanvasElement=)}
 
A callback function to call once the result of capture is ready
opt_errback:
{function(string)=} [optional]
 
A callback function to call if error occurred during capture