utopia-ui 3.0.0-alpha.63 → 3.0.0-alpha.64

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
@@ -2470,7 +2470,7 @@ function capitalizeFirstLetter(string) {
2470
2470
  // for refreshing map on resize (needs to be implemented)
2471
2471
  var mapDivRef = React.createRef();
2472
2472
  function UtopiaMap(_a) {
2473
- var _b = _a.height, height = _b === void 0 ? "500px" : _b, _c = _a.width, width = _c === void 0 ? "100%" : _c, _d = _a.center, center = _d === void 0 ? new LatLng(50.6, 9.5) : _d, _e = _a.zoom, zoom = _e === void 0 ? 10 : _e, children = _a.children;
2473
+ var _b = _a.height, height = _b === void 0 ? "500px" : _b, _c = _a.width, width = _c === void 0 ? "100%" : _c, _d = _a.center, center = _d === void 0 ? [50.6, 9.5] : _d, _e = _a.zoom, zoom = _e === void 0 ? 10 : _e, children = _a.children;
2474
2474
  var meta = document.getElementsByTagName('meta');
2475
2475
  var _f = useState(meta), metaTags = _f[0]; _f[1];
2476
2476
  function MapEventListener(props) {
@@ -2503,7 +2503,7 @@ function UtopiaMap(_a) {
2503
2503
  React.createElement(ItemsProvider, { initialItems: [] },
2504
2504
  React.createElement(LeafletRefsProvider, { initialLeafletRefs: {} },
2505
2505
  React.createElement("div", { className: (selectNewItemPosition != null ? "crosshair-cursor-enabled" : undefined) },
2506
- React.createElement(MapContainer, { ref: mapDivRef, style: { height: height, width: width }, center: center, zoom: zoom, zoomControl: false },
2506
+ React.createElement(MapContainer, { ref: mapDivRef, style: { height: height, width: width }, center: new LatLng(center[0], center[1]), zoom: zoom, zoomControl: false },
2507
2507
  React.createElement(Control, { position: 'topLeft', zIndex: "1000" },
2508
2508
  React.createElement(SearchControl, { clusterRef: clusterRef }),
2509
2509
  React.createElement(TagsControl, null)),