Add legend, attribution to allowed keys for metadata.
This commit is contained in:
@@ -617,7 +617,7 @@ MBTiles.prototype.putInfo = function(data, callback) {
|
||||
|
||||
// Valid keys.
|
||||
var keys = [ 'name', 'type', 'description', 'version', 'formatter',
|
||||
'bounds', 'center', 'minzoom', 'maxzoom' ];
|
||||
'bounds', 'center', 'minzoom', 'maxzoom', 'legend', 'attribution' ];
|
||||
|
||||
var stmt = this._db.prepare('REPLACE INTO metadata (name, value) VALUES (?, ?)');
|
||||
stmt.on('error', callback);
|
||||
|
||||
Reference in New Issue
Block a user