Add more tests

This commit is contained in:
Andreas Hocevar
2021-08-17 00:49:12 +02:00
parent 7acd5338c9
commit 814d70b1cc
14 changed files with 508 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ import {assign} from '../obj.js';
/**
* @param {Style} style The layer style.
* @param {number} bandCount The number of bands.
* @param {number} [bandCount] The number of bands.
* @return {ParsedStyle} Shaders and uniforms generated from the style.
*/
function parseStyle(style, bandCount) {
@@ -291,6 +291,7 @@ class WebGLTileLayer extends BaseTileLayer {
vertexShader: parsedStyle.vertexShader,
fragmentShader: parsedStyle.fragmentShader,
uniforms: parsedStyle.uniforms,
className: this.getClassName(),
});
}

View File

@@ -100,7 +100,7 @@ class DataTileSource extends TileSource {
* @param {number} y Tile coordinate y.
* @param {number} pixelRatio Pixel ratio.
* @param {import("../proj/Projection.js").default} projection Projection.
* @return {!import("../Tile.js").default} Tile.
* @return {!DataTile} Tile.
*/
getTile(z, x, y, pixelRatio, projection) {
const tileCoordKey = getKeyZXY(z, x, y);