@pirireis/webglobeplugins 0.16.2 → 0.16.4

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.16.2",
3
+ "version": "0.16.4",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -120,7 +120,7 @@ export class ContextTexBulk {
120
120
  const itemsLen = itemsInBBox.length;
121
121
  for (let i = 0; i < itemsLen; i++) {
122
122
  const item = itemsInBBox[i];
123
- const { lat, long, text, opacity = null, angle = null, position } = item;
123
+ const { lat, long, text, opacity = null, angle = null, position, xOffsetLocal = xOffset, yOffsetLocal = yOffset } = item;
124
124
  const { opacityMultiplier, sizeMultiplier } = zoomAdapter(item);
125
125
  if (sizeMultiplier <= 0 || opacityMultiplier <= 0)
126
126
  continue;
@@ -133,7 +133,7 @@ export class ContextTexBulk {
133
133
  textFont.size = sizeMultiplier * textSize * inputZoomResult.sizeMultiplier;
134
134
  textFont.position = position;
135
135
  if (x !== null && y !== null)
136
- globe.api_DrawContextTextMultiLine(text, textFont, o, { x: x + xOffset, y: y - yOffset }, angleIsOn, angle);
136
+ globe.api_DrawContextTextMultiLine(text, textFont, o, { x: x + xOffsetLocal, y: y - yOffsetLocal }, angleIsOn, angle);
137
137
  }
138
138
  textFont.size = textSize;
139
139
  }