Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
tilelive.js is a tile server for node.js which supports on-the-fly configuration and advanced interaction output. It can be used to add a tile server to an existing web application or wrapped with a light standalone web tile server.
tilelive.js supports backends for serving tiles and for storing them when creating mbtiles or other caches of tiles.
Each backend is expected to export an object in the following form:
module.exports = {
// Return an object usable with the `Pool()` constructor from
// `generic-pool`. The resource will be pooled and passed back to
// other backend methods for serving and storing.
pool: function(datasource) {
return {
create: [Function],
destroy: [Function]
}
},
// For server backends.
// Serve a tile, grid, or other resource. The `callback` function
// should be called with `callback(err, data)` where `data` is an array
// such that `data[0]` is suitable as a response body and `data[1]`
// contains a hash of HTTP headers that describe the data.
serve: function(resource, options, callback) {},
// For storage backends.
// Store tiles, grids, or perform other tasks related to batch tile
// generation. Steps called include: setup, metadata, tiles, grids,
// and finish.
setup: function(step, resource, data, callback) {}
}
To use tilelive to serve tiles from mbtiles install mbtiles. To serve dynamically rendered tiles using mapnik install tilelive-mapnik. To render tiles using mapnik and store them in the mbtiles format, install both.
Install master:
git clone git://github.com/mapbox/tilelive.js.git tilelive
cd tilelive
npm install .
Or install latest release via npm repositories:
npm install tilelive
tilelive can be used to create mbtiles
files or possibly other formats using the tilebatch
command.
tilebatch <datasource> <filepath>
For a full list of options, run tilebatch --help
.
To run the tests
npm test
See examples
or geode for examples of a tilelive powered server.
Split out tilelive-mapnik
, mbtiles
backends.
This release is all distribution fixes:
Minor release: adds Pool
argument to Tile.getMap()
, to let users dispose of used maps.
node-sqlite3
replaces node-sqlite
for better performance and stability.layer.json
now supports legends and interaction.server.js
removed from examplestilelive_server.js
added to bin/
tile
as a scheme. TMS or XYZ are required; TMS is default.FAQs
API for various map tile backends
The npm package tilelive receives a total of 126 weekly downloads. As such, tilelive popularity was classified as not popular.
We found that tilelive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 49 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.