@datatechsolutions/ui 2.9.7 → 2.9.9

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.
@@ -12317,7 +12317,20 @@ function GeoMapCanvasInner({
12317
12317
  const isActive = isRegionActive?.(regionCode);
12318
12318
  const isHovered = hoveredRegion === regionCode;
12319
12319
  const isDimmed = hasAnyActiveFilter && !isActive && hasItems;
12320
- const pathData = pathGenerator(feature);
12320
+ let pathData = pathGenerator(feature);
12321
+ if (pathData && projectionType === "albersUsa") {
12322
+ while (pathData) {
12323
+ const firstZ = pathData.indexOf("Z");
12324
+ if (firstZ < 0 || firstZ > 200) break;
12325
+ const sub = pathData.slice(0, firstZ);
12326
+ const lCount = (sub.match(/L/g) || []).length;
12327
+ if (lCount <= 4) {
12328
+ pathData = pathData.slice(firstZ + 1) || null;
12329
+ } else {
12330
+ break;
12331
+ }
12332
+ }
12333
+ }
12321
12334
  if (!pathData) return null;
12322
12335
  return /* @__PURE__ */ jsxRuntime.jsx(
12323
12336
  "path",
@@ -23888,5 +23901,5 @@ exports.useGeoMapState = useGeoMapState;
23888
23901
  exports.useNotifications = useNotifications;
23889
23902
  exports.usePlatformShellStore = usePlatformShellStore;
23890
23903
  exports.usePullToRefresh = usePullToRefresh;
23891
- //# sourceMappingURL=chunk-ZSITK566.js.map
23892
- //# sourceMappingURL=chunk-ZSITK566.js.map
23904
+ //# sourceMappingURL=chunk-G5MMZVTM.js.map
23905
+ //# sourceMappingURL=chunk-G5MMZVTM.js.map