@datatechsolutions/ui 2.9.4 → 2.9.5

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.
@@ -12145,7 +12145,7 @@ function useGeoMapState({
12145
12145
  getFontSize
12146
12146
  };
12147
12147
  }
12148
- var MAP_DEFAULT_STATE_COLOR = "rgba(51, 65, 85, 0.50)";
12148
+ var MAP_DEFAULT_STATE_COLOR = "rgba(100, 116, 139, 0.35)";
12149
12149
  var MAP_DEFAULT_MARKER_COLOR = "#6366f1";
12150
12150
  var VIEWBOX_WIDTH = 1e3;
12151
12151
  var VIEWBOX_HEIGHT = 500;
@@ -12250,8 +12250,10 @@ function GeoMapCanvasInner({
12250
12250
  }, [geoData]);
12251
12251
  const projection = React12.useMemo(() => {
12252
12252
  if (!featureCollection) return null;
12253
- const base = projectionType === "albersUsa" ? d3Geo.geoAlbersUsa() : d3Geo.geoMercator();
12254
- return base.fitSize([VIEWBOX_WIDTH, VIEWBOX_HEIGHT], featureCollection);
12253
+ if (projectionType === "albersUsa") {
12254
+ return d3Geo.geoAlbersUsa().scale(VIEWBOX_WIDTH / 960 * 1070).translate([VIEWBOX_WIDTH / 2, VIEWBOX_HEIGHT / 2]);
12255
+ }
12256
+ return d3Geo.geoMercator().fitSize([VIEWBOX_WIDTH, VIEWBOX_HEIGHT], featureCollection);
12255
12257
  }, [featureCollection, projectionType]);
12256
12258
  const pathGenerator = React12.useMemo(() => {
12257
12259
  if (!projection) return null;
@@ -23882,5 +23884,5 @@ exports.useGeoMapState = useGeoMapState;
23882
23884
  exports.useNotifications = useNotifications;
23883
23885
  exports.usePlatformShellStore = usePlatformShellStore;
23884
23886
  exports.usePullToRefresh = usePullToRefresh;
23885
- //# sourceMappingURL=chunk-YVWHJJ45.js.map
23886
- //# sourceMappingURL=chunk-YVWHJJ45.js.map
23887
+ //# sourceMappingURL=chunk-TL2TXLHH.js.map
23888
+ //# sourceMappingURL=chunk-TL2TXLHH.js.map