Merge pull request #6988 from ahocevar/vectortile-types
Add missing type annotations
This commit is contained in:
@@ -260,7 +260,7 @@ ol.renderer.canvas.VectorTileLayer.prototype.forEachFeatureAtCoordinate = functi
|
|||||||
} else {
|
} else {
|
||||||
tileSpaceCoordinate = coordinate;
|
tileSpaceCoordinate = coordinate;
|
||||||
}
|
}
|
||||||
replayGroup = sourceTile.getReplayGroup(tile.tileCoord);
|
replayGroup = sourceTile.getReplayGroup(tile.tileCoord.toString());
|
||||||
found = found || replayGroup.forEachFeatureAtCoordinate(
|
found = found || replayGroup.forEachFeatureAtCoordinate(
|
||||||
tileSpaceCoordinate, resolution, rotation, hitTolerance, {},
|
tileSpaceCoordinate, resolution, rotation, hitTolerance, {},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -48,6 +48,10 @@ ol.VectorTile = function(tileCoord, state, src, format, tileLoadFunction) {
|
|||||||
*/
|
*/
|
||||||
this.projection_;
|
this.projection_;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
* @type {Object.<string, ol.render.ReplayGroup>}
|
||||||
|
*/
|
||||||
this.replayGroups_ = {};
|
this.replayGroups_ = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -117,6 +121,10 @@ ol.VectorTile.prototype.getProjection = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} key Key.
|
||||||
|
* @return {ol.render.ReplayGroup} Replay group.
|
||||||
|
*/
|
||||||
ol.VectorTile.prototype.getReplayGroup = function(key) {
|
ol.VectorTile.prototype.getReplayGroup = function(key) {
|
||||||
return this.replayGroups_[key];
|
return this.replayGroups_[key];
|
||||||
};
|
};
|
||||||
@@ -173,6 +181,10 @@ ol.VectorTile.prototype.setProjection = function(projection) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} key Key.
|
||||||
|
* @param {ol.render.ReplayGroup} replayGroup Replay group.
|
||||||
|
*/
|
||||||
ol.VectorTile.prototype.setReplayGroup = function(key, replayGroup) {
|
ol.VectorTile.prototype.setReplayGroup = function(key, replayGroup) {
|
||||||
this.replayGroups_[key] = replayGroup;
|
this.replayGroups_[key] = replayGroup;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user