Add legend, attribution to allowed keys for metadata.

This commit is contained in:
Young Hahn
2011-08-02 22:23:11 -04:00
parent aea1baf24f
commit c2b27463ed

View File

@@ -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);