@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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -112223,7 +112223,7 @@ var BaseMap = function BaseMap(props) {
|
|
|
112223
112223
|
}
|
|
112224
112224
|
}, [clustered, children, map]);
|
|
112225
112225
|
React.useEffect(function () {
|
|
112226
|
-
if (map && React.Children.count(children) > 0) {
|
|
112226
|
+
if (fitBounds && map && React.Children.count(children) > 0) {
|
|
112227
112227
|
var bounds = new google.maps.LatLngBounds();
|
|
112228
112228
|
React.Children.forEach(children, function (child) {
|
|
112229
112229
|
bounds.extend(new google.maps.LatLng(child.props.position.lat, child.props.position.lng));
|