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's powered by Mapnik and can be used to add a tile server to an existing web application or wrapped with a light standalone web tile server.
Tilelive includes a tilelive_server.js
binary which can be used to serve a tileset from a .mml
file (with carto or Mapnik XML).
This server requires Express 0.1.x (see below for installation instructions).
Usage:
tilelive_server.js world.mml
tilelive_server.js stylesheet.xml
Examples are given in examples/
.
Note: if you are looking for simple server examples see the node-mapnik examples.
Install master:
git clone git://github.com/mapbox/tilelive.js.git
cd tilelive.js
npm install .
Or install latest release via npm repositories:
npm install tilelive
If you want to use the example server 'tilelive_server.js' then also install express:
npm install express@1.0.7
Buggy versions of npm (or the apps package.json file) may cause installation to fail for some dependencies.
For example you may need to install node-compress manually like:
git clone git://github.com/kkaefer/node-compress.git
cd node-compress
npm install .
To run the tests you first need to install expresso:
npm install expresso
Then from within this directory do:
expresso
var express = require('express'),
Tile = require('tilelive').Tile,
app = express.createServer();
app.get('/:scheme/:mapfile_64/:z/:x/:y.*', function(req, res) {
/*
* scheme: (xyz|tms|tile (tms))
*
* format:
* - Tile: (png|jpg)
* - Data Tile: (geojson)
* - Grid Tile: (*.grid.json)
*/
try {
var tile = new Tile({
scheme: req.params.scheme,
mapfile: req.params.mapfile_64,
xyz: [
req.params.x,
req.params.z,
req.params.y],
format: req.params[0],
mapfile_dir: '/tmp/mapfiles'
});
} catch (err) {
res.send('Tile invalid: ' + err.message);
}
tile.render(function(err, data) {
if (!err) {
res.send.apply(res, data);
} else {
res.send('Tile rendering error: ' + err);
}
});
});
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.