react-googlemaps
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,3 +1,7 @@ | ||
## 0.1.1 | ||
- Added base required propType checks | ||
## 0.1.0 | ||
- Initial release. |
{ | ||
"name": "react-googlemaps", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A declarative React interface to Google Maps", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,2 +8,3 @@ /** @jsx React.DOM */ | ||
var ReactMapComponents = require('../../ReactMapComponents'); | ||
var MapPropTypes = require('../MapPropTypes'); | ||
@@ -20,2 +21,4 @@ var GoogleMapsMap = ReactMapComponents.Map; | ||
propTypes: { | ||
zoom: React.PropTypes.number.isRequired, | ||
center: MapPropTypes.LatLng.isRequired, | ||
width: React.PropTypes.oneOfType([React.PropTypes.number, React.PropTypes.string]), | ||
@@ -22,0 +25,0 @@ height: React.PropTypes.oneOfType([React.PropTypes.number, React.PropTypes.string]) |
@@ -8,2 +8,3 @@ /** @jsx React.DOM */ | ||
var GoogleMapsAPI = require('../../GoogleMapsAPI'); | ||
var MapPropTypes = require('../MapPropTypes'); | ||
@@ -53,3 +54,3 @@ function MapOverlayView(props) { | ||
propTypes: { | ||
mapPane: React.PropTypes.oneOf(['overlayLayer']) | ||
mapPane: MapPropTypes.MapPanes.isRequired | ||
}, | ||
@@ -56,0 +57,0 @@ |
@@ -47,2 +47,7 @@ "use strict"; | ||
*/ | ||
exports.MarkerShape = React.PropTypes.object; | ||
exports.MarkerShape = React.PropTypes.object; | ||
/** | ||
* Checks whether a prop provides a `GoogleMaps.MapPanes` | ||
*/ | ||
exports.MapPanes = React.PropTypes.oneOf(['floatPane', 'mapPane', 'markerLayer', 'overlayLayer', 'overlayMouseTarget']); |
Sorry, the diff of this file is not supported yet
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
52254
929