Skip to content

Commit fe14516

Browse files
committed
Website updates
1 parent 89fd202 commit fe14516

21 files changed

+82
-31
lines changed

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/renderer/webgl/Layer.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ declare class WebGLLayerRenderer<LayerType extends import("../../layer/Layer.js"
7878
* @protected
7979
*/
8080
protected helper: WebGLHelper;
81+
onMapChanged_: () => void;
8182
/**
8283
* @param {WebGLRenderingContext} context The WebGL rendering context.
8384
* @param {import("../../Map.js").FrameState} frameState Frame state.
@@ -110,6 +111,10 @@ declare class WebGLLayerRenderer<LayerType extends import("../../layer/Layer.js"
110111
* @protected
111112
*/
112113
protected prepareFrameInternal(frameState: import("../../Map.js").FrameState): boolean;
114+
/**
115+
* @protected
116+
*/
117+
protected clearCache(): void;
113118
/**
114119
* @param {import("../../render/EventType.js").default} type Event type.
115120
* @param {WebGLRenderingContext} context The rendering context.

dist/en/main/ol/renderer/webgl/Layer.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/renderer/webgl/Layer.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ class WebGLLayerRenderer extends LayerRenderer {
6767
*/
6868
this.helper;
6969

70-
layer.addChangeListener(LayerProperty.MAP, this.removeHelper.bind(this));
70+
this.onMapChanged_ = () => {
71+
this.clearCache();
72+
this.removeHelper();
73+
};
74+
75+
layer.addChangeListener(LayerProperty.MAP, this.onMapChanged_);
7176

7277
this.dispatchPreComposeEvent = this.dispatchPreComposeEvent.bind(this);
7378
this.dispatchPostComposeEvent = this.dispatchPostComposeEvent.bind(this);
@@ -201,12 +206,22 @@ class WebGLLayerRenderer extends LayerRenderer {
201206
return true;
202207
}
203208

209+
/**
210+
* @protected
211+
*/
212+
clearCache() {}
213+
204214
/**
205215
* Clean up.
206216
* @override
207217
*/
208218
disposeInternal() {
219+
this.clearCache();
209220
this.removeHelper();
221+
this.getLayer()?.removeChangeListener(
222+
LayerProperty.MAP,
223+
this.onMapChanged_,
224+
);
210225
super.disposeInternal();
211226
}
212227

dist/en/main/ol/renderer/webgl/PointsLayer.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/renderer/webgl/PointsLayer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
366366
if (this.hitDetectionEnabled_) {
367367
this.hitRenderTarget_ = new WebGLRenderTarget(this.helper);
368368
}
369+
370+
this.getLayer().getSource().changed();
369371
}
370372

371373
/**

dist/en/main/ol/renderer/webgl/TileLayer.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)