UNPKG

1.38 kBJavaScriptView Raw
1/**
2 * @externs
3 * @see https://github.com/mapbox/tilejson-spec
4 * @see https://github.com/mapbox/utfgrid-spec
5 */
6
7
8/**
9 * @constructor
10 */
11var TileJSON = function() {};
12
13
14/**
15 * @type {string}
16 */
17TileJSON.prototype.tilejson;
18
19
20/**
21 * @type {string|undefined}
22 */
23TileJSON.prototype.name;
24
25
26/**
27 * @type {string|undefined}
28 */
29TileJSON.prototype.description;
30
31
32/**
33 * @type {string|undefined}
34 */
35TileJSON.prototype.version;
36
37
38/**
39 * @type {string|undefined}
40 */
41TileJSON.prototype.attribution;
42
43
44/**
45 * @type {string|undefined}
46 */
47TileJSON.prototype.template;
48
49
50/**
51 * @type {string|undefined}
52 */
53TileJSON.prototype.legend;
54
55
56/**
57 * @type {string|undefined}
58 */
59TileJSON.prototype.scheme;
60
61
62/**
63 * @type {!Array.<string>}
64 */
65TileJSON.prototype.tiles;
66
67
68/**
69 * @type {!Array.<string>|undefined}
70 */
71TileJSON.prototype.grids;
72
73
74/**
75 * @type {number|undefined}
76 */
77TileJSON.prototype.minzoom;
78
79
80/**
81 * @type {number|undefined}
82 */
83TileJSON.prototype.maxzoom;
84
85
86/**
87 * @type {!Array.<number>|undefined}
88 */
89TileJSON.prototype.bounds;
90
91
92/**
93 * @type {!Array.<number>|undefined}
94 */
95TileJSON.prototype.center;
96
97
98
99/**
100 * @constructor
101 */
102var UTFGridJSON = function() {};
103
104
105/**
106 * @type {!Array.<string>}
107 */
108UTFGridJSON.prototype.grid;
109
110
111/**
112 * @type {!Array.<string>}
113 */
114UTFGridJSON.prototype.keys;
115
116
117/**
118 * @type {!Object.<string, Object>|undefined}
119 */
120UTFGridJSON.prototype.data;