@pirireis/webglobeplugins 0.10.7-alpha → 0.10.8-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.10.7-alpha",
3
+ "version": "0.10.8-alpha",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -59,7 +59,6 @@ export class TexturePointSampler {
59
59
  pointObject.long = long;
60
60
  pointObject.lat = lat;
61
61
  if (!this._isInBBox(long, lat)) {
62
- console.warn("Point is out of bbox, use registerPoint with valid coordinates");
63
62
  pointObject.posIndex = -1; // Mark as invalid
64
63
  pointObject.callback(null, null, null);
65
64
  return false;
@@ -121,7 +120,7 @@ export class TexturePointSampler {
121
120
  return;
122
121
  }
123
122
  const { posIndex, callback } = pointObject;
124
- if (posIndex === -1) {
123
+ if (posIndex === -1 || !this._isReady || this._ratio < 0 || this._ratio > 1) {
125
124
  callback(null, null, null);
126
125
  }
127
126
  const data0 = this._textures[0][posIndex];