Removing code that had been commented out.

This commit is contained in:
vdv committed 2023-01-20 21:20:41 +01:00
1 parent 9ade878deb
commit 81ffb65aaf
2 files changed
+3 -44

No files matched your search

+1 -10
View File
@@ -1,5 +1,4 @@
import { equals, Extent } from 'ol/extent';
import { fromLonLat, Projection } from 'ol/proj';
import VectorTileSource from 'ol/source/VectorTile.js';
interface Options {
@@ -9,23 +8,15 @@ interface Options {
class ClusterableVectorTileSourceProxy {
extent?: Extent;
resolution?: number;
// extentProjected?: Extent;
featuresSent: boolean = false;
proxy?: typeof Proxy;
overloads = {
loadFeatures: (target: VectorTileSource) => {
return (extent: Extent, resolution: number, projection: Projection) => {
return (extent: Extent, resolution: number) => {
this.resolution = resolution;
if (this.extent === undefined || !equals(this.extent, extent)) {
this.extent = extent;
// const projection = target.getProjection();
// if (projection != null) {
// this.extentProjected = fromLonLat(
// extent.slice(0, 2),
// projection
// ).concat(fromLonLat(extent.slice(2), this.projection));
// }
}
if (!this.featuresSent) {
target.dispatchEvent('change');