@locr-company/vms2-tile-db-reader
v1.0.1
Published
A class for reading tile data from a database.
Readme
1. Installation
npm install @locr-company/vms2-tile-db-reader2. How to use
import { SQLite } from '@locr-company/vms2-tile-db-reader';
const tileDb = new SQLite('data/world.sqlite');
const tileData = tileDb.getRawData(34686, 21566, 16, 'building', '*', 'polygons');
// tileData is a Buffer object, that you output in a http response.3. Development
Clone the repository
git clone [email protected]:locr-company/js-vms2-tile-db-reader.git
cd js-vms2-tile-db-reader/.git/hooks && ln -s ../../git-hooks/* . && cd ../..
npm install4. Publish a new version
# update CHANGELOG.md file
npm version <major>.<minor>.<patch>
git push && git push origin --tags