ol 9.1.1-dev.1714847031230 → 9.1.1-dev.1714987784597

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.
@@ -1,5 +1,5 @@
1
1
  export default WebGLPointsLayer;
2
- export type Options<VectorSourceType extends import("../source/Vector.js").default<import("../Feature.js").default<import("../geom.js").Geometry>>> = {
2
+ export type Options<VectorSourceType extends import("../source/Vector.js").default<import("../Feature").FeatureLike>> = {
3
3
  /**
4
4
  * Literal style to apply to the layer features.
5
5
  */
@@ -65,7 +65,7 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
65
65
  } | undefined;
66
66
  };
67
67
  /**
68
- * @template {import("../source/Vector.js").default} VectorSourceType
68
+ * @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>} VectorSourceType
69
69
  * @typedef {Object} Options
70
70
  * @property {import('../style/webgl.js').WebGLStyle} style Literal style to apply to the layer features.
71
71
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
@@ -120,11 +120,11 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
120
120
  * property on the layer object; for example, setting `title: 'My Title'` in the
121
121
  * options means that `title` is observable, and has get/set accessors.
122
122
  *
123
- * @template {import("../source/Vector.js").default} VectorSourceType
123
+ * @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>} VectorSourceType
124
124
  * @extends {Layer<VectorSourceType, WebGLPointsLayerRenderer>}
125
125
  * @fires import("../render/Event.js").RenderEvent
126
126
  */
127
- declare class WebGLPointsLayer<VectorSourceType extends import("../source/Vector.js").default<import("../Feature.js").default<import("../geom.js").Geometry>>> extends Layer<VectorSourceType, WebGLPointsLayerRenderer> {
127
+ declare class WebGLPointsLayer<VectorSourceType extends import("../source/Vector.js").default<import("../Feature").FeatureLike>> extends Layer<VectorSourceType, WebGLPointsLayerRenderer> {
128
128
  /**
129
129
  * @param {Options<VectorSourceType>} options Options.
130
130
  */
@@ -6,7 +6,7 @@ import WebGLPointsLayerRenderer from '../renderer/webgl/PointsLayer.js';
6
6
  import {parseLiteralStyle} from '../webgl/styleparser.js';
7
7
 
8
8
  /**
9
- * @template {import("../source/Vector.js").default} VectorSourceType
9
+ * @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>} VectorSourceType
10
10
  * @typedef {Object} Options
11
11
  * @property {import('../style/webgl.js').WebGLStyle} style Literal style to apply to the layer features.
12
12
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
@@ -62,7 +62,7 @@ import {parseLiteralStyle} from '../webgl/styleparser.js';
62
62
  * property on the layer object; for example, setting `title: 'My Title'` in the
63
63
  * options means that `title` is observable, and has get/set accessors.
64
64
  *
65
- * @template {import("../source/Vector.js").default} VectorSourceType
65
+ * @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>} VectorSourceType
66
66
  * @extends {Layer<VectorSourceType, WebGLPointsLayerRenderer>}
67
67
  * @fires import("../render/Event.js").RenderEvent
68
68
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.1.1-dev.1714847031230",
3
+ "version": "9.1.1-dev.1714987784597",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -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,MAAM,WAAW,CAAC;;;;;;;;;;;AAP5C;;GAEG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH;IACE;;;OAGG;IACH,mBAHW,OAAO,sBAAsB,EAAE,OAAO,WACtC,OAAO,EAqFjB;IAvEC;;;OAGG;IACH,6BAAwD;IAExD;;;OAGG;IACH,yBAAqB;IAErB,wBAAyB;IAEzB,kDAAoC;IAEpC;;;;;;OAMG;IACH,0BAA0C;IAE1C,qBA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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,0BAMC;IASD;;;;OAIG;IACH,kCAGC;IAED;;;OAGG;IACH,oCAGC;IAED;;;OAGG;IACH,mCAGC;IAED;;OAEG;IACH,kCAEC;IAED;;;OAGG;IACH,uBAsBC;IAED;;;;OAIG;IACH,wBAHW,OAAO,cAAc,EAAE,UAAU,GAChC,WAAW,CA+BtB;IAoED;;;;;;;OAOG;IACH,yBANW,OAAO,cAAc,EAAE,UAAU,mBACjC,OAAO,cACP,MAAM,YACN,MAAM,cACN,MAAM,QAuChB;CAqDF;+BAjf8B,YAAY"}
@@ -428,12 +428,16 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
428
428
  );
429
429
  }
430
430
 
431
- this.currentFrameStateTransform_ = this.helper.makeProjectionTransform(
432
- frameState,
433
- this.currentFrameStateTransform_,
434
- );
435
-
436
431
  do {
432
+ this.helper.makeProjectionTransform(
433
+ frameState,
434
+ this.currentFrameStateTransform_,
435
+ );
436
+ translateTransform(
437
+ this.currentFrameStateTransform_,
438
+ world * worldWidth,
439
+ 0,
440
+ );
437
441
  for (let i = 0, ii = this.styleRenderers_.length; i < ii; i++) {
438
442
  const renderer = this.styleRenderers_[i];
439
443
  const buffers = this.buffers_[i];
@@ -445,7 +449,6 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
445
449
  this.helper.applyHitDetectionUniform(forHitDetection);
446
450
  });
447
451
  }
448
- translateTransform(this.currentFrameStateTransform_, worldWidth, 0);
449
452
  } while (++world < endWorld);
450
453
  }
451
454
 
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '9.1.1-dev.1714847031230';
36
+ export const VERSION = '9.1.1-dev.1714987784597';