@banyan_cloud/roots 1.0.84 → 1.0.85

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/esm/index.js CHANGED
@@ -112203,7 +112203,7 @@ var BaseMap = function BaseMap(props) {
112203
112203
  }
112204
112204
  }, [clustered, children, map]);
112205
112205
  useEffect(function () {
112206
- if (map && Children.count(children) > 0) {
112206
+ if (fitBounds && map && Children.count(children) > 0) {
112207
112207
  var bounds = new google.maps.LatLngBounds();
112208
112208
  Children.forEach(children, function (child) {
112209
112209
  bounds.extend(new google.maps.LatLng(child.props.position.lat, child.props.position.lng));