0.1.14 tag with template key
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
# 0.1.14
|
||||||
|
|
||||||
|
- Allows `template` key in `metadata` table.
|
||||||
|
|
||||||
# 0.1.0
|
# 0.1.0
|
||||||
|
|
||||||
- Modified interface to conform to Tilesource interface:
|
- Modified interface to conform to Tilesource interface:
|
||||||
|
|||||||
@@ -629,8 +629,8 @@ MBTiles.prototype.putInfo = function(data, callback) {
|
|||||||
if (!this._isWritable) return callback(new Error('MBTiles not in write mode'));
|
if (!this._isWritable) return callback(new Error('MBTiles not in write mode'));
|
||||||
|
|
||||||
// Valid keys.
|
// Valid keys.
|
||||||
var keys = [ 'name', 'type', 'description', 'version', 'formatter',
|
var keys = ['name', 'type', 'description', 'version', 'formatter', 'template',
|
||||||
'bounds', 'center', 'minzoom', 'maxzoom', 'legend', 'attribution' ];
|
'bounds', 'center', 'minzoom', 'maxzoom', 'legend', 'attribution'];
|
||||||
|
|
||||||
var stmt = this._db.prepare('REPLACE INTO metadata (name, value) VALUES (?, ?)');
|
var stmt = this._db.prepare('REPLACE INTO metadata (name, value) VALUES (?, ?)');
|
||||||
stmt.on('error', callback);
|
stmt.on('error', callback);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mbtiles",
|
"name": "mbtiles",
|
||||||
"version": "0.1.13",
|
"version": "0.1.14",
|
||||||
"description": "Utilities and tilelive integration for the MBTiles format.",
|
"description": "Utilities and tilelive integration for the MBTiles format.",
|
||||||
"url": "http://github.com/mapbox/node-mbtiles",
|
"url": "http://github.com/mapbox/node-mbtiles",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
Reference in New Issue
Block a user