@pirireis/webglobeplugins 0.5.5 → 0.5.6

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.5.5",
3
+ "version": "0.5.6",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -128,13 +128,19 @@ export class ContextTextWriter2 {
128
128
 
129
129
 
130
130
  insertText(item, id, container, properties) {
131
+ const key = this.keyAdaptor(item, id, container, properties)
131
132
  const coords = this.coordinatesAdaptor(item, id, container, properties)
132
- if (coords == null) return;
133
+ if (coords == null) {
134
+ this.itemMap.delete(key);
135
+ return;
136
+ }
133
137
  const text = this.textAdaptor(item, id, container, properties)
134
- if (text == null) return;
138
+ if (text == null) {
139
+ this.itemMap.delete(key);
140
+ return
141
+ };
135
142
  const opacity = this.opacityAdaptor(item, id, container, properties);
136
143
  const angle = this.angleAdaptor(item, id, container, properties);
137
- const key = this.keyAdaptor(item, id, container, properties)
138
144
  this.itemMap.set(key, { long: coords.long, lat: coords.lat, text, opacity, angle });
139
145
  }
140
146