@openglobus/og 0.16.2 → 0.16.3

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": "@openglobus/og",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "[OpenGlobus](https://www.openglobus.org/) is a javascript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers and 3d objects. It uses the WebGL technology, open source and completely free.",
5
5
  "directories": {
6
6
  "example": "./sandbox"
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  "use strict";
4
2
  import { Billboard } from "../entity/Billboard.js";
5
3
  import { Entity } from "../entity/Entity.js";
@@ -87,7 +85,7 @@ export class KML extends Vector {
87
85
  if (!placemark) return;
88
86
 
89
87
  const nameTags = Array.from(placemark.getElementsByTagName("name"))
90
- const name = nameTags && nameTags[0]?.innerHTML?.trim() || '';
88
+ const name = nameTags && nameTags.length > 0 ? nameTags[0].innerHTML.trim() : '';
91
89
 
92
90
  const { iconHeading, iconURL, iconColor, lineWidth, lineColor } = this._extractStyle(placemark);
93
91