ol 10.0.1-dev.1723836909517 → 10.0.1-dev.1723996571401
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/layer/WebGLTile.d.ts +4 -4
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +1 -1
- package/package.json +1 -1
- package/render/webgl/VectorStyleRenderer.d.ts +21 -12
- package/render/webgl/VectorStyleRenderer.d.ts.map +1 -1
- package/render/webgl/VectorStyleRenderer.js +64 -25
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +7 -1
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +9 -2
- package/util.js +1 -1
package/layer/WebGLTile.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default WebGLTileLayer;
|
|
2
|
-
export type SourceType = import("../source/DataTile.js").default
|
|
2
|
+
export type SourceType = import("../source/DataTile.js").default<import("../DataTile.js").default | import("../ImageTile.js").default>;
|
|
3
3
|
/**
|
|
4
4
|
* Translates tile data to rendered pixels.
|
|
5
5
|
*/
|
|
@@ -100,7 +100,7 @@ export type Options = {
|
|
|
100
100
|
/**
|
|
101
101
|
* Source for this layer.
|
|
102
102
|
*/
|
|
103
|
-
source?: import("../source/DataTile.js").default<import("../DataTile.js").default> | undefined;
|
|
103
|
+
source?: import("../source/DataTile.js").default<import("../DataTile.js").default | import("../ImageTile.js").default> | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* Array
|
|
106
106
|
* of sources for this layer. Takes precedence over `source`. Can either be an array of sources, or a function that
|
|
@@ -108,7 +108,7 @@ export type Options = {
|
|
|
108
108
|
* {@link module :ol/source.sourcesFromTileGrid} for a helper function to generate sources that are organized in a
|
|
109
109
|
* pyramid following the same pattern as a tile grid. **Note:** All sources must have the same band count and content.
|
|
110
110
|
*/
|
|
111
|
-
sources?: import("../source/DataTile.js").default<import("../DataTile.js").default>[] | ((arg0: import("../extent.js").Extent, arg1: number) => Array<SourceType>) | undefined;
|
|
111
|
+
sources?: import("../source/DataTile.js").default<import("../DataTile.js").default | import("../ImageTile.js").default>[] | ((arg0: import("../extent.js").Extent, arg1: number) => Array<SourceType>) | undefined;
|
|
112
112
|
/**
|
|
113
113
|
* Sets the layer as overlay on a map. The map will not manage
|
|
114
114
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
@@ -164,7 +164,7 @@ export type ParsedStyle = {
|
|
|
164
164
|
* @fires import("../render/Event.js").RenderEvent
|
|
165
165
|
* @api
|
|
166
166
|
*/
|
|
167
|
-
declare class WebGLTileLayer extends BaseTileLayer<import("../source/DataTile.js").default<import("../DataTile.js").default>, WebGLTileLayerRenderer> {
|
|
167
|
+
declare class WebGLTileLayer extends BaseTileLayer<import("../source/DataTile.js").default<import("../DataTile.js").default | import("../ImageTile.js").default>, WebGLTileLayerRenderer> {
|
|
168
168
|
/**
|
|
169
169
|
* @param {Options} options Tile layer options.
|
|
170
170
|
*/
|
package/layer/WebGLTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":";yBAmBa,OAAO,uBAAuB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":";yBAmBa,OAAO,uBAAuB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,OAAO,GAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIA+C/E,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,KAAE,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBnF,MAAM;;;;oBACN,MAAM;;;;cACN;YAAO,MAAM,GAAC,OAAO,oBAAoB,EAAE,YAAY;KAAC;;;;qBACxD,KAAK,CAAC,OAAO,4BAA4B,EAAE,OAAO,CAAC;;AA0LjE;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAyCjB;IA/BC;;;OAGG;IACH,iBAA+B;IAE/B;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA8B;IAE9B;;;OAGG;IACH,eAAmB;IAEnB;;;OAGG;IACH,wBAAkD;IAKpD;;;;;OAKG;IACH,mBAJW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,GACL,KAAK,CAAC,UAAU,CAAC,CAW5B;IAED;;;OAGG;IACH,4BAHY,UAAU,CAKrB;IAWD;;OAEG;IACH,4BAOC;IAED;;;OAGG;IACH,4BAMC;IAiBD;;;;OAIG;IACH,0BAJW,OAAO,QAAQ,EAAE,UAAU,WAC3B,KAAK,CAAC,UAAU,CAAC,GAChB,WAAW,CAYtB;IAED;;;;;;OAMG;IACH,4BANY,OAAO,WAAW,EAAE,UAAU,OAAA,UAC/B,WAAW,GAEV,WAAW,CAuCtB;IAED;;;;;;;OAOG;IACH,gBAFW,KAAK,QAgBf;IAED;;;;OAIG;IACH,gCAHW;YAAO,MAAM,GAAE,MAAM;KAAC,QAMhC;CACF;mCAzeM,gCAAgC;0BALb,eAAe"}
|
package/layer/WebGLTile.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {expressionToGlsl} from '../webgl/styleparser.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* @typedef {import("../source/DataTile.js").default} SourceType
|
|
20
|
+
* @typedef {import("../source/DataTile.js").default<import("../DataTile.js").default|import("../ImageTile.js").default>} SourceType
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
package/package.json
CHANGED
|
@@ -165,12 +165,28 @@ declare class VectorStyleRenderer {
|
|
|
165
165
|
constructor(styleOrShaders: VectorStyle, helper: import("../../webgl/Helper.js").default, enableHitDetection: boolean);
|
|
166
166
|
/**
|
|
167
167
|
* @private
|
|
168
|
+
* @type {import('../../webgl/Helper.js').default}
|
|
168
169
|
*/
|
|
169
170
|
private helper_;
|
|
170
171
|
/**
|
|
171
172
|
* @private
|
|
172
173
|
*/
|
|
173
174
|
private hitDetectionEnabled_;
|
|
175
|
+
/**
|
|
176
|
+
* @private
|
|
177
|
+
* @type {WebGLProgram}
|
|
178
|
+
*/
|
|
179
|
+
private fillProgram_;
|
|
180
|
+
/**
|
|
181
|
+
* @private
|
|
182
|
+
* @type {WebGLProgram}
|
|
183
|
+
*/
|
|
184
|
+
private strokeProgram_;
|
|
185
|
+
/**
|
|
186
|
+
* @private
|
|
187
|
+
* @type {WebGLProgram}
|
|
188
|
+
*/
|
|
189
|
+
private symbolProgram_;
|
|
174
190
|
/**
|
|
175
191
|
* @type {boolean}
|
|
176
192
|
* @private
|
|
@@ -184,10 +200,6 @@ declare class VectorStyleRenderer {
|
|
|
184
200
|
* @private
|
|
185
201
|
*/
|
|
186
202
|
private fillFragmentShader_;
|
|
187
|
-
/**
|
|
188
|
-
* @private
|
|
189
|
-
*/
|
|
190
|
-
private fillProgram_;
|
|
191
203
|
/**
|
|
192
204
|
* @type {boolean}
|
|
193
205
|
* @private
|
|
@@ -201,10 +213,6 @@ declare class VectorStyleRenderer {
|
|
|
201
213
|
* @private
|
|
202
214
|
*/
|
|
203
215
|
private strokeFragmentShader_;
|
|
204
|
-
/**
|
|
205
|
-
* @private
|
|
206
|
-
*/
|
|
207
|
-
private strokeProgram_;
|
|
208
216
|
/**
|
|
209
217
|
* @type {boolean}
|
|
210
218
|
* @private
|
|
@@ -218,10 +226,6 @@ declare class VectorStyleRenderer {
|
|
|
218
226
|
* @private
|
|
219
227
|
*/
|
|
220
228
|
private symbolFragmentShader_;
|
|
221
|
-
/**
|
|
222
|
-
* @private
|
|
223
|
-
*/
|
|
224
|
-
private symbolProgram_;
|
|
225
229
|
/**
|
|
226
230
|
* @private
|
|
227
231
|
*/
|
|
@@ -283,6 +287,11 @@ declare class VectorStyleRenderer {
|
|
|
283
287
|
* @private
|
|
284
288
|
*/
|
|
285
289
|
private renderInternal_;
|
|
290
|
+
/**
|
|
291
|
+
* @param {import('../../webgl/Helper.js').default} helper Helper
|
|
292
|
+
* @param {WebGLBuffers} buffers WebGL Buffers to reload if any
|
|
293
|
+
*/
|
|
294
|
+
setHelper(helper: import("../../webgl/Helper.js").default, buffers?: WebGLBuffers): void;
|
|
286
295
|
}
|
|
287
296
|
import WebGLArrayBuffer from '../../webgl/Buffer.js';
|
|
288
297
|
//# sourceMappingURL=VectorStyleRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStyleRenderer.d.ts","sourceRoot":"","sources":["VectorStyleRenderer.js"],"names":[],"mappings":";;;;yBA4BU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBF,CAAS,IAAwD,EAAnD,OAAO,yBAAyB,EAAE,iBAAiB,EAAE,IAAmC,EAAnC,OAAO,eAAe,EAAE,WAAW,KAAE,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC;;mCAK7H;QAAO,MAAM,GAAE,mBAAmB;CAAC;iCACnC;QAAO,MAAM,GAAE,OAAO,oBAAoB,EAAE,YAAY;CAAC;;;;;oBAKxD,KAAK,CAAC,gBAAgB,CAAC;;;;uBACvB,KAAK,CAAC,gBAAgB,CAAC;;;;kBACvB,KAAK,CAAC,gBAAgB,CAAC;;;;6BACvB,OAAO,oBAAoB,EAAE,SAAS;;;;;;yBAKtC,YAAY,GAAC,IAAI;;;;4BACjB,Y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EH;;;;;GAKG;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;GAaG;AACH;IACE;;;;OAIG;IACH,4BAJW,WAAW,UACX,OAAO,uBAAuB,EAAE,OAAO,sBACvC,OAAO,EAsMjB;IAnMC;;;OAGG;IACH,gBAAY;IAEZ;;OAEG;IACH,6BAA8C;IAgB9C;;;OAGG;IACH,qBAAiB;IAEjB;;;OAGG;IACH,uBAAmB;IAEnB;;;OAGG;IACH,uBAAmB;IAEnB;;;OAGG;IACH,iBAAuD;IAErD;;OAEG;IACH,0BAA8D;IAC9D;;OAEG;IACH,4BAAkE;IAGpE;;;OAGG;IACH,mBAA2D;IAEzD;;OAEG;IACH,4BAAkE;IAClE;;OAEG;IACH,8BAAsE;IAGxE;;;OAGG;IACH,mBAA2D;IAEzD;;OAEG;IACH,4BAAkE;IAClE;;OAEG;IACH,8BAAsE;IAcxE;;OAEG;IACH,0BAIC;IACD;;OAEG;IACH,kBAAiC;IASjC;;;OAGG;IACH,+BAOC;IACD;;;OAGG;IACH,kCAqCC;IACD;;;OAGG;IACH,6BAYC;IAKH;;;;OAIG;IACH,+BAJW,OAAO,yBAAyB,EAAE,OAAO,aACzC,OAAO,oBAAoB,EAAE,SAAS,GACrC,OAAO,CAAC,YAAY,CAAC,CAqChC;IAED;;;;;OAKG;IACH,oCA+BC;IAED;;;;;;OAMG;IACH,gCAuEC;IAED;;;;;OAKG;IACH,gBAJW,YAAY,cACZ,OAAO,cAAc,EAAE,UAAU,qBACjC,MAAY,IAAI,QA8B1B;IAED;;;;;;;;OAQG;IACH,wBAkBC;IAED;;;OAGG;IACH,kBAHW,OAAO,uBAAuB,EAAE,OAAO,YACvC,YAAY,QAuCtB;CACF;6BA5jB4B,uBAAuB"}
|
|
@@ -110,8 +110,9 @@ class VectorStyleRenderer {
|
|
|
110
110
|
constructor(styleOrShaders, helper, enableHitDetection) {
|
|
111
111
|
/**
|
|
112
112
|
* @private
|
|
113
|
+
* @type {import('../../webgl/Helper.js').default}
|
|
113
114
|
*/
|
|
114
|
-
this.helper_
|
|
115
|
+
this.helper_;
|
|
115
116
|
|
|
116
117
|
/**
|
|
117
118
|
* @private
|
|
@@ -132,6 +133,24 @@ class VectorStyleRenderer {
|
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
135
|
|
|
136
|
+
/**
|
|
137
|
+
* @private
|
|
138
|
+
* @type {WebGLProgram}
|
|
139
|
+
*/
|
|
140
|
+
this.fillProgram_;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @private
|
|
144
|
+
* @type {WebGLProgram}
|
|
145
|
+
*/
|
|
146
|
+
this.strokeProgram_;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @private
|
|
150
|
+
* @type {WebGLProgram}
|
|
151
|
+
*/
|
|
152
|
+
this.symbolProgram_;
|
|
153
|
+
|
|
135
154
|
/**
|
|
136
155
|
* @type {boolean}
|
|
137
156
|
* @private
|
|
@@ -146,13 +165,6 @@ class VectorStyleRenderer {
|
|
|
146
165
|
* @private
|
|
147
166
|
*/
|
|
148
167
|
this.fillFragmentShader_ = shaders.builder.getFillFragmentShader();
|
|
149
|
-
/**
|
|
150
|
-
* @private
|
|
151
|
-
*/
|
|
152
|
-
this.fillProgram_ = this.helper_.getProgram(
|
|
153
|
-
this.fillFragmentShader_,
|
|
154
|
-
this.fillVertexShader_,
|
|
155
|
-
);
|
|
156
168
|
}
|
|
157
169
|
|
|
158
170
|
/**
|
|
@@ -169,13 +181,6 @@ class VectorStyleRenderer {
|
|
|
169
181
|
* @private
|
|
170
182
|
*/
|
|
171
183
|
this.strokeFragmentShader_ = shaders.builder.getStrokeFragmentShader();
|
|
172
|
-
/**
|
|
173
|
-
* @private
|
|
174
|
-
*/
|
|
175
|
-
this.strokeProgram_ = this.helper_.getProgram(
|
|
176
|
-
this.strokeFragmentShader_,
|
|
177
|
-
this.strokeVertexShader_,
|
|
178
|
-
);
|
|
179
184
|
}
|
|
180
185
|
|
|
181
186
|
/**
|
|
@@ -192,13 +197,6 @@ class VectorStyleRenderer {
|
|
|
192
197
|
* @private
|
|
193
198
|
*/
|
|
194
199
|
this.symbolFragmentShader_ = shaders.builder.getSymbolFragmentShader();
|
|
195
|
-
/**
|
|
196
|
-
* @private
|
|
197
|
-
*/
|
|
198
|
-
this.symbolProgram_ = this.helper_.getProgram(
|
|
199
|
-
this.symbolFragmentShader_,
|
|
200
|
-
this.symbolVertexShader_,
|
|
201
|
-
);
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
const hitDetectionAttributes = this.hitDetectionEnabled_
|
|
@@ -304,9 +302,7 @@ class VectorStyleRenderer {
|
|
|
304
302
|
...customAttributesDesc,
|
|
305
303
|
];
|
|
306
304
|
|
|
307
|
-
|
|
308
|
-
this.helper_.addUniforms(shaders.uniforms);
|
|
309
|
-
}
|
|
305
|
+
this.setHelper(helper);
|
|
310
306
|
}
|
|
311
307
|
|
|
312
308
|
/**
|
|
@@ -534,6 +530,49 @@ class VectorStyleRenderer {
|
|
|
534
530
|
preRenderCallback();
|
|
535
531
|
this.helper_.drawElements(0, renderCount);
|
|
536
532
|
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @param {import('../../webgl/Helper.js').default} helper Helper
|
|
536
|
+
* @param {WebGLBuffers} buffers WebGL Buffers to reload if any
|
|
537
|
+
*/
|
|
538
|
+
setHelper(helper, buffers = null) {
|
|
539
|
+
this.helper_ = helper;
|
|
540
|
+
|
|
541
|
+
if (this.hasFill_) {
|
|
542
|
+
this.fillProgram_ = this.helper_.getProgram(
|
|
543
|
+
this.fillFragmentShader_,
|
|
544
|
+
this.fillVertexShader_,
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
if (this.hasStroke_) {
|
|
548
|
+
this.strokeProgram_ = this.helper_.getProgram(
|
|
549
|
+
this.strokeFragmentShader_,
|
|
550
|
+
this.strokeVertexShader_,
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
if (this.hasSymbol_) {
|
|
554
|
+
this.symbolProgram_ = this.helper_.getProgram(
|
|
555
|
+
this.symbolFragmentShader_,
|
|
556
|
+
this.symbolVertexShader_,
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
this.helper_.addUniforms(this.uniforms_);
|
|
560
|
+
|
|
561
|
+
if (buffers) {
|
|
562
|
+
if (buffers.polygonBuffers) {
|
|
563
|
+
this.helper_.flushBufferData(buffers.polygonBuffers[0]);
|
|
564
|
+
this.helper_.flushBufferData(buffers.polygonBuffers[1]);
|
|
565
|
+
}
|
|
566
|
+
if (buffers.lineStringBuffers) {
|
|
567
|
+
this.helper_.flushBufferData(buffers.lineStringBuffers[0]);
|
|
568
|
+
this.helper_.flushBufferData(buffers.lineStringBuffers[1]);
|
|
569
|
+
}
|
|
570
|
+
if (buffers.pointBuffers) {
|
|
571
|
+
this.helper_.flushBufferData(buffers.pointBuffers[0]);
|
|
572
|
+
this.helper_.flushBufferData(buffers.pointBuffers[1]);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
537
576
|
}
|
|
538
577
|
|
|
539
578
|
export default VectorStyleRenderer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointsLayer.d.ts","sourceRoot":"","sources":["PointsLayer.js"],"names":[],"mappings":";;;;;;;;;UA+Bc,MAAM;;;;;cACN,CAAS,IAA+B,EAA/B,OAAO,eAAe,EAAE,OAAO,EAAE,IAAiB,EAAjB;YAAO,MAAM,GAAE,GAAC;KAAC,KAAE,MAAM;;;;;;;;;;aAOnE,OAAO,eAAe,EAAE,OAAO;;;;gBAC/B;YAAO,MAAM,GAAE,GAAC;KAAC;;;;cACjB,OAAO,YAAY,EAAE,QAAQ;;;;;;;;;;;;;;;;;;kBAW7B,MAAM;;;;oBACN,MAAM;;;;;;;;;;;;;;;;;AAzBpB;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;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H;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH;IACE;;;OAGG;IACH,mBAHW,OAAO,sBAAsB,EAAE,OAAO,WACtC,OAAO,EAoOjB;IAxNC;;OAEG;IACH,wBAAyB;IAEzB;;OAEG;IACH,wBAAuE;IACvE;;OAEG;IACH,uBAGC;IAED;;OAEG;IACH,sBAAyC;IAEzC;;OAEG;IACH,wBAA6C;IAE7C;;;OAGG;IACH,iBAAa;IAEb;;;OAGG;IACH,6BAA+D;IAY/D;;;;OAIG;IACH,YAFU,KAAK,CAAC,OAAO,uBAAuB,EAAE,oBAAoB,CAAC,CAapE;IAgBD,oCAAoE;IAEpE;;OAEG;IACH,wBAAoC;IAEpC;;;;;;OAMG;IACH,0BAAkD;IAElD;;;;OAIG;IACH,yBAAyC;IAEzC;;;OAGG;IACH,+BAA+C;IAE/C;;;OAGG;IACH,4BAA8C;IAE9C;;;OAGG;IACH,yBAAqB;IAErB;;;;OAIG;IACH,mBAAmB;IAEnB;;OAEG;IACH,gBAAkC;IAgClC;;;;OAIG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,sBAAsB;IAGtB;;OAEG;IACH,0BAyBC;IAiCH;;;OAGG;IACH,kCAQC;IAED;;;OAGG;IACH,oCAOC;IAED;;;OAGG;IACH,mCAIC;IAED;;OAEG;IACH,kCAGC;IAED;;;;;OAKG;IACH,iCAJW,OAAO,cAAc,EAAE,UAAU,GAChC,WAAW,CA6BtB;IA8CD;;;;OAIG;IACH,wBAgFC;IA8CD;;;;;;;OAOG;IACH,yBANW,OAAO,cAAc,EAAE,UAAU,mBACjC,OAAO,cACP,MAAM,YACN,MAAM,cACN,MAAM,QAgChB;IAeD,wBAAoB;CACrB;+BAvqB8B,YAAY"}
|
|
@@ -367,7 +367,13 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
|
|
|
367
367
|
this.hitRenderTarget_ = new WebGLRenderTarget(this.helper);
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
|
|
370
|
+
// upload buffers again if any
|
|
371
|
+
if (this.verticesBuffer_.getArray()) {
|
|
372
|
+
this.helper.flushBufferData(this.verticesBuffer_);
|
|
373
|
+
}
|
|
374
|
+
if (this.indicesBuffer_.getArray()) {
|
|
375
|
+
this.helper.flushBufferData(this.indicesBuffer_);
|
|
376
|
+
}
|
|
371
377
|
}
|
|
372
378
|
|
|
373
379
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorLayer.d.ts","sourceRoot":"","sources":["VectorLayer.js"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;;EAKE;;0BAGW,OAAO,2CAA2C,EAAE,WAAW;;;;;;;;;WAM9D,WAAW,GAAC,KAAK,CAAC,WAAW,CAAC;;;;;;;;;;;AAP5C;;GAEG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH;IACE;;;OAGG;IACH,mBAHW,OAAO,sBAAsB,EAAE,OAAO,WACtC,OAAO,EAoGjB;IAtFC;;;OAGG;IACH,6BAAwD;IAExD;;;OAGG;IACH,yBAAqB;IAErB;;OAEG;IACH,wBAAyB;IAEzB;;OAEG;IACH,wBAAoC;IAEpC;;;;;;OAMG;IACH,0BAA0C;IAE1C;;OAEG;IACH,mBAAwB;IACxB;;OAEG;IACH,sBAAsC;IACtC;;OAEG;IACH,iBAA4B;IAE5B;;;OAGG;IACH,oCAAoD;IAEpD;;;OAGG;IACH,gBAAiB;IAEjB;;;OAGG;IACH,wBAAyB;IAEzB;;;OAGG;IACH,iBAAkB;IAIlB;;OAEG;IACH,eAAsC;IAEtC;;;OAGG;IACH,8BAAkC;IAElC;;;OAGG;IACH,0BAA6B;IAG/B;;;OAGG;IACH,4BAqCC;IAED;;;OAGG;IACH,sBAIC;IAED;;OAEG;IACH,yBAMC;IAED;;OAEG;IACH,mCAMC;
|
|
1
|
+
{"version":3,"file":"VectorLayer.d.ts","sourceRoot":"","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-255,11 +255,18 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
|
|
|
255
255
|
* @override
|
|
256
256
|
*/
|
|
257
257
|
afterHelperCreated() {
|
|
258
|
-
this.
|
|
258
|
+
if (this.styleRenderers_.length) {
|
|
259
|
+
// To reuse buffers
|
|
260
|
+
this.styleRenderers_.forEach((renderer, i) =>
|
|
261
|
+
renderer.setHelper(this.helper, this.buffers_[i]),
|
|
262
|
+
);
|
|
263
|
+
} else {
|
|
264
|
+
this.createRenderers_();
|
|
265
|
+
}
|
|
266
|
+
|
|
259
267
|
if (this.hitDetectionEnabled_) {
|
|
260
268
|
this.hitRenderTarget_ = new WebGLRenderTarget(this.helper);
|
|
261
269
|
}
|
|
262
|
-
this.getLayer().getSource().changed();
|
|
263
270
|
}
|
|
264
271
|
|
|
265
272
|
/**
|
package/util.js
CHANGED