react-google-maps
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -1,2 +0,2 @@ | ||
### 1.3.2 (2015-05-22) | ||
## 1.4.0 (2015-06-17) | ||
@@ -6,2 +6,3 @@ | ||
* **SimpleChildComponent:** Make sure to only animate markers on the first run. ([65aec078](https://github.com/tomchentw/react-google-maps/commit/65aec0784f833061eeaad7be00d979a0a417330e)) | ||
* **src:** eslint issues ([adf3764b](https://github.com/tomchentw/react-google-maps/commit/adf3764b6264e2740c5e3e6e8caf56b3c6732300)) | ||
@@ -8,0 +9,0 @@ |
@@ -164,6 +164,7 @@ "use strict"; | ||
value: function _render_virtual_container_() { | ||
var props = this.props;var googleMapsApi = props.googleMapsApi; | ||
var props = this.props; | ||
var googleMapsApi = props.googleMapsApi; | ||
var children = props.children; | ||
var instance = this.state.instance; | ||
var children = props.children;var instance = this.state.instance; | ||
if (!googleMapsApi || !instance) { | ||
@@ -186,3 +187,4 @@ return; | ||
GoogleMaps.propTypes = _extends({}, _internalsEventComponent2["default"].propTypes, { | ||
containerProps: PropTypes.object.isRequired }); | ||
containerProps: PropTypes.object.isRequired | ||
}); | ||
@@ -189,0 +191,0 @@ GoogleMaps._registerEvents = (0, _internalsCreateRegisterEvents2["default"])("bounds_changed center_changed click dblclick drag dragend dragstart heading_changed idle maptypeid_changed mousemove mouseout mouseover projection_changed resize rightclick tilesloaded tilt_changed zoom_changed"); |
@@ -59,3 +59,4 @@ "use strict"; | ||
InfoWindow.propTypes = _extends({}, _internalsSimpleChildComponent2["default"].propTypes, { | ||
anchor: PropTypes.object }); | ||
anchor: PropTypes.object | ||
}); | ||
@@ -62,0 +63,0 @@ InfoWindow._GoogleMapsClassName = "InfoWindow"; |
@@ -90,5 +90,6 @@ "use strict"; | ||
EventComponent.propTypes = { | ||
googleMapsApi: PropTypes.object }; | ||
googleMapsApi: PropTypes.object | ||
}; | ||
exports["default"] = EventComponent; | ||
module.exports = exports["default"]; |
@@ -80,4 +80,5 @@ "use strict"; | ||
if (googleMapsConfig.map === instance.getMap()) { | ||
// prevent it not to be removed first then be added later | ||
// Set map and animation props only on the first run: | ||
delete googleMapsConfig.map; | ||
delete googleMapsConfig.animation; | ||
} | ||
@@ -120,5 +121,6 @@ instance.setOptions(googleMapsConfig); | ||
SimpleChildComponent.propTypes = _extends({}, _EventComponent3["default"].propTypes, { | ||
map: PropTypes.object }); | ||
map: PropTypes.object | ||
}); | ||
exports["default"] = SimpleChildComponent; | ||
module.exports = exports["default"]; |
@@ -48,3 +48,4 @@ "use strict"; | ||
googleMapsApi: props.googleMapsApi, | ||
map: props.map }; | ||
map: props.map | ||
}; | ||
@@ -66,5 +67,6 @@ return _react2["default"].Children.map(props.children, function (child) { | ||
map: PropTypes.object.isRequired, | ||
children: PropTypes.arrayOf(PropTypes.element) }; | ||
children: PropTypes.arrayOf(PropTypes.element) | ||
}; | ||
exports["default"] = VirtualContainer; | ||
module.exports = exports["default"]; |
@@ -65,3 +65,4 @@ "use strict"; | ||
map: props.map, | ||
anchor: this.state.instance }; | ||
anchor: this.state.instance | ||
}; | ||
@@ -68,0 +69,0 @@ return Children.map(props.children, function (child) { |
{ | ||
"__template__gist__": "https://gist.github.com/tomchentw/368a93bb748ad9d576f1#file-package-json", | ||
"name": "react-google-maps", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "React.js Google Maps integration component", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -9,3 +9,5 @@ # react-google-maps [![Travis CI][travis-image]][travis-url] [![Quality][codeclimate-image]][codeclimate-url] [![Coverage][codeclimate-coverage-image]][codeclimate-coverage-url] [![Dependencies][gemnasium-image]][gemnasium-url] [![Gitter][gitter-image]][gitter-url] | ||
`npm i --save react-google-maps` | ||
```sh | ||
npm i --save react-google-maps | ||
``` | ||
@@ -12,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59347
22
766
66
0