@pirireis/webglobeplugins 1.1.9 → 1.1.10

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": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -246,6 +246,12 @@ export class TerrainPolygonSemiPlugin {
246
246
  }
247
247
  return this._lastPickedPolygon;
248
248
  }
249
+ getPolygon(key) {
250
+ const index = this._indexPolygonMap['_polygonKeyMap'].get(key);
251
+ if (index === undefined)
252
+ return null;
253
+ return this._indexPolygonMap.get(index);
254
+ }
249
255
  _selfSelect() {
250
256
  const { globe, _pickerDisplayer } = this;
251
257
  const pos = globe.api_GetMousePos();