@pirireis/webglobeplugins 0.15.14-alpha → 0.15.15-alpha

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.15.14-alpha",
3
+ "version": "0.15.15-alpha",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -110,7 +110,7 @@ export class BearingLinePlugin {
110
110
  this._textWritersMap = textWritersMap || new Map();
111
111
  this._textWritersMap.forEach((writer) => writer.setKeyAdaptor((item) => item.key));
112
112
  this._textDataPreAdaptor = textDataPreAdaptor || ((item) => item);
113
- this.circlePlugin = new CircleOnTerrainPlugin(id + "_circle");
113
+ this.circlePlugin = new CircleOnTerrainPlugin(id + "_circle", this._semiPluginsOptions.circleOnTerrainOptions);
114
114
  this.arcPlugin = new ArcOnTerrainPlugin(id + "_arc", {
115
115
  ...this._semiPluginsOptions.arcOnTerrainOptions,
116
116
  });
@@ -73,10 +73,11 @@ export class CircleOnTerrainPlugin {
73
73
  defaultColor: [0.1, 0.1, 0.1, 1], // Default color in RGBA format
74
74
  defaultHeightFromGroundIn3D: 30.0
75
75
  };
76
- constructor(id, styleOptions = {}) {
76
+ constructor(id, styleOptions = null) {
77
77
  this.id = id;
78
- this._styleOptions = { ...this._styleOptions, ...styleOptions };
79
- this._styleOptions.defaultColor = new Float32Array(this._styleOptions.defaultColor);
78
+ if (styleOptions) {
79
+ this._styleOptions = { ...this._styleOptions, ...styleOptions };
80
+ }
80
81
  }
81
82
  init(globe, gl) {
82
83
  this.globe = globe;