diff --git a/externs/tilejson.js b/externs/tilejson.js new file mode 100644 index 0000000000..5927c479ee --- /dev/null +++ b/externs/tilejson.js @@ -0,0 +1,95 @@ +/** + * @externs + * @see https://github.com/mapbox/tilejson-spec + */ + + + +/** + * @constructor + */ +var TileJSON = function() {}; + + +/** + * @type {string} + */ +TileJSON.prototype.tilejson; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.name; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.description; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.version; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.attribution; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.template; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.legend; + + +/** + * @type {string|undefined} + */ +TileJSON.prototype.scheme; + + +/** + * @type {!Array.} + */ +TileJSON.prototype.tiles; + + +/** + * @type {!Array.} + */ +TileJSON.prototype.grids; + + +/** + * @type {number|undefined} + */ +TileJSON.prototype.minzoom; + + +/** + * @type {number|undefined} + */ +TileJSON.prototype.maxzoom; + + +/** + * @type {!Array.|undefined} + */ +TileJSON.prototype.bounds; + + +/** + * @type {!Array.|undefined} + */ +TileJSON.prototype.center;