@vis.gl/react-google-maps
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -9,2 +9,3 @@ /// <reference types="google.maps" /> | ||
anchor?: google.maps.Marker | google.maps.marker.AdvancedMarkerElement | null; | ||
shouldFocus?: boolean; | ||
}; | ||
@@ -11,0 +12,0 @@ /** |
@@ -1348,3 +1348,3 @@ (function (global, factory) { | ||
var _excluded$1 = ["children", "anchor", "onCloseClick"]; | ||
var _excluded$1 = ["children", "anchor", "shouldFocus", "onCloseClick"]; | ||
/** | ||
@@ -1357,2 +1357,3 @@ * Component to render a Google Maps Info Window | ||
anchor = props.anchor, | ||
shouldFocus = props.shouldFocus, | ||
onCloseClick = props.onCloseClick, | ||
@@ -1415,4 +1416,7 @@ infoWindowOptions = _objectWithoutPropertiesLoose(props, _excluded$1); | ||
} | ||
if (shouldFocus) { | ||
openOptions.shouldFocus = shouldFocus; | ||
} | ||
infoWindowRef.current.open(openOptions); | ||
}, [contentContainer, infoWindowRef, anchor, map]); | ||
}, [contentContainer, infoWindowRef, anchor, map, shouldFocus]); | ||
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, contentContainer !== null && reactDom.createPortal(children, contentContainer)); | ||
@@ -1419,0 +1423,0 @@ }; |
{ | ||
"name": "@vis.gl/react-google-maps", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "React components and hooks for Google Maps.", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
449685
6140