This is a renderer for geographic data.
Currently it only supports rendering on a canvas, useful with charto-leaflet
or OpenLayers.
Contains the CanvasRenderer
class with a render
method taking the following parameters:
- Target canvas, a HTML
canvas
element. - Features to render, a
LayerFeatures
object as returned from theLayer.getLayerFeatures
method defined incharto-model
. - Bounding box, an instance of
BBox
defined incharto-model
. - Canvas tile width in pixels.
- Canvas tile height in pixels.
- Map zoom level (optional).
Copyright (c) 2017 BusFaster Ltd