charto-render
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i charto-render

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jjrv