@JsType(isNative=true) public class Canvas extends TileLayer
Modifier and Type | Method and Description |
---|---|
L |
drawTile(HTMLCanvasElement canvas,
Point tilePoint,
java.lang.Number zoom)
You need to define this method after creating the instance to draw tiles; canvas is the actual canvas tile on which you can draw, tilePoint represents the tile numbers, and zoom is the current zoom.
|
void |
tileDrawn(HTMLCanvasElement canvas)
If async option is defined, this function should be called for each tile after drawing completion.
|
addTo, bringToBack, bringToFront, clearAllEventListeners, fire, getContainer, off, on, onAdd, once, onRemove, redraw, setOpacity, setUrl, setZIndex
@JsMethod public L drawTile(HTMLCanvasElement canvas, Point tilePoint, java.lang.Number zoom)
canvas
- the canvas elementtilePoint
- the tile pointzoom
- the zoom@JsMethod public void tileDrawn(HTMLCanvasElement canvas)
canvas
- the canvas element