Closed Scarysize closed 7 years ago
I know loadTile is not part of the public API of a raster source. But we are overwriting it from the outside to only load tiles in a given bounding box:
loadTile
const source = map.getSource(id); const originalLoadTile = source.loadTile.bind(source); source.loadTile = (tile, callback) => { const intersects = testTileIntersection(boundingBox, tile); if (intersects) { return originalLoadTile(tile, callback); } return callback(null); };
We just need the property on the object. Shouldn't hurt anyone.
Yea, I think this is ok as its a noop function.
noop
Thanks for the fast review, merge and release <3
I know
loadTile
is not part of the public API of a raster source. But we are overwriting it from the outside to only load tiles in a given bounding box:We just need the property on the object. Shouldn't hurt anyone.