@carto/ps-react-maps 3.11.3 → 3.11.4

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/index.js CHANGED
@@ -459,10 +459,14 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
459
459
  const a = s();
460
460
  if (!a.maps?.[n]?.isLoaded) return;
461
461
  const c = a.getViewState(n);
462
- return c ? {
463
- ...new pt(c).fitBounds(o, i?.boundsOptions),
462
+ if (!c) return;
463
+ const y = new pt(c).fitBounds(o, i?.boundsOptions);
464
+ return {
465
+ latitude: y.latitude,
466
+ longitude: y.longitude,
467
+ zoom: y.zoom,
464
468
  ...i?.viewStateOptions
465
- } : void 0;
469
+ };
466
470
  },
467
471
  addLayers: (n, o) => t((i) => {
468
472
  const a = {