gralobe 1.0.45 → 1.0.47

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/dist/gralobe.js CHANGED
@@ -4278,17 +4278,18 @@ class it {
4278
4278
  if (!t) return null;
4279
4279
  let i = "";
4280
4280
  if (this.topologyConfig?.labelProperty && (i = e.properties?.[this.topologyConfig.labelProperty] || ""), i || (i = e.properties?.name || e.properties?.NAME || e.properties?.Name || e.properties?.label || e.properties?.LABEL || ""), !i && e.properties) {
4281
- const n = Object.keys(e.properties);
4282
- for (const r of n) {
4283
- const s = r.toLowerCase(), o = e.properties[r];
4284
- if (typeof o == "string" && (s.includes("name") || s.includes("label") || s.includes("title"))) {
4285
- i = o;
4281
+ const r = Object.keys(e.properties);
4282
+ for (const s of r) {
4283
+ const o = s.toLowerCase(), l = e.properties[s];
4284
+ if (typeof l == "string" && (o.includes("name") || o.includes("label") || o.includes("title"))) {
4285
+ i = l;
4286
4286
  break;
4287
4287
  }
4288
4288
  }
4289
4289
  }
4290
- return {
4291
- id: String(e.id || e.properties?.id || ""),
4290
+ let n = e.id || e.properties?.id;
4291
+ return this.topologyConfig?.idProperty && (n = e.properties?.[this.topologyConfig.idProperty]), {
4292
+ id: String(n || ""),
4292
4293
  name: i,
4293
4294
  lat: t[1],
4294
4295
  lon: t[0]
@@ -4845,19 +4846,19 @@ class $a {
4845
4846
  font-size: 8px;
4846
4847
  }
4847
4848
 
4848
- /* All style - slightly more subtle but still readable */
4849
+ /* All style - harmonized visibility */
4849
4850
  .label-style-all .country-label {
4850
4851
  color: rgba(255, 255, 255, 0.85);
4851
4852
  }
4852
4853
 
4853
4854
  .label-style-all .country-label.size-large {
4854
4855
  font-size: 9px;
4855
- color: rgba(255, 255, 255, 0.9);
4856
+ color: rgba(255, 255, 255, 0.95);
4856
4857
  }
4857
4858
 
4858
4859
  .label-style-all .country-label.size-tiny {
4859
4860
  font-size: 5px;
4860
- color: rgba(255, 255, 255, 0.6);
4861
+ color: rgba(255, 255, 255, 0.8);
4861
4862
  }
4862
4863
  `, document.head.appendChild(e);
4863
4864
  }