0.0.1 • Published 7 years ago

charto-render v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

charto-render

npm version

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 the Layer.getLayerFeatures method defined in charto-model.
  • Bounding box, an instance of BBox defined in charto-model.
  • Canvas tile width in pixels.
  • Canvas tile height in pixels.
  • Map zoom level (optional).

License

The MIT License

Copyright (c) 2017 BusFaster Ltd

0.0.1

7 years ago