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.
See examples/server.js
for an example tile server that leverages Express as
its web framework.
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);
}
});
});
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.