Merge pull request #8957 from fredj/misc

Fix JSdoc type cast format
This commit is contained in:
Frédéric Junod
2018-11-16 11:25:16 +01:00
committed by GitHub

View File

@@ -437,7 +437,7 @@ class Graticule extends VectorLayer {
* @param {import("../proj/Projection.js").default} projection Projection
*/
loaderFunction(extent, resolution, projection) {
const source = /** @type import("../source/Vector").default} */ (this.getSource());
const source = /** @type {import("../source/Vector.js").default} */ (this.getSource());
// only consider the intersection between our own extent & the requested one
const layerExtent = this.getExtent() || [-Infinity, -Infinity, Infinity, Infinity];