Merge pull request #3015 from klokantech/utfgrid

UTFGrid Support
This commit is contained in:
Andreas Hocevar
2014-12-12 12:37:37 +01:00
5 changed files with 597 additions and 0 deletions
+28
View File
@@ -3549,6 +3549,34 @@ olx.source.GPXOptions.prototype.url;
olx.source.GPXOptions.prototype.urls;
/**
* @typedef {{preemptive: (boolean|undefined),
* url: string}}
* @api
*/
olx.source.TileUTFGridOptions;
/**
* If `true` the TileUTFGrid source loads the tiles based on their "visibility".
* This improves the speed of response, but increases traffic.
* Note that if set to `false`, you need to pass `true` as `opt_request`
* to the `forDataAtCoordinateAndResolution` method otherwise no data
* will ever be loaded.
* Default is `true`.
* @type {boolean|undefined}
* @api
*/
olx.source.TileUTFGridOptions.prototype.preemptive;
/**
* @type {string}
* @api
*/
olx.source.TileUTFGridOptions.prototype.url;
/**
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* crossOrigin: (null|string|undefined),
+26
View File
@@ -1,6 +1,7 @@
/**
* @externs
* @see https://github.com/mapbox/tilejson-spec
* @see https://github.com/mapbox/utfgrid-spec
*/
@@ -93,3 +94,28 @@ TileJSON.prototype.bounds;
* @type {!Array.<number>|undefined}
*/
TileJSON.prototype.center;
/**
* @constructor
*/
var UTFGridJSON = function() {};
/**
* @type {!Array.<string>}
*/
UTFGridJSON.prototype.grid;
/**
* @type {!Array.<string>}
*/
UTFGridJSON.prototype.keys;
/**
* @type {!Object.<string, Object>|undefined}
*/
UTFGridJSON.prototype.data;