Fix JSdoc type cast format

This commit is contained in:
Frederic Junod
2018-11-16 11:11:42 +01:00
parent bdbf00f055
commit e991dcc38c

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];