react-map-polygon-selector
Advanced tools
Comparing version
@@ -326,2 +326,5 @@ 'use strict'; | ||
geocoder.geocode(search, function (results, status) { | ||
if (_this3.props.onGeocode) { | ||
_this3.props.onGeocode({ search: search, results: results, status: status }); | ||
} | ||
if (status !== 'OK') { | ||
@@ -676,2 +679,6 @@ console.error('geocode not ok', search, '-->', results, status); | ||
} | ||
var defaultField = field + 'Default'; | ||
if (_lodash2.default.has(props, defaultField) && !_this6.state[field] && !newState[field]) { | ||
newState[field] = props[defaultField]; | ||
} | ||
}); | ||
@@ -981,3 +988,7 @@ if ((0, _keys2.default)(newState).length === 0) return; | ||
onSelection: _react2.default.PropTypes.func, | ||
onGeocode: _react2.default.PropTypes.func, | ||
geocodeSearch: _react2.default.PropTypes.string, | ||
geocodeSearchDefault: _react2.default.PropTypes.string, | ||
showBtnSubmit: _react2.default.PropTypes.bool, | ||
@@ -984,0 +995,0 @@ showBtnClear: _react2.default.PropTypes.bool, |
{ | ||
"name": "react-map-polygon-selector", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "React Map Polygon Selector - Custom Wrapper for react-google-maps", | ||
@@ -5,0 +5,0 @@ "repository": { |
351861
517.35%21
5%2936
139.28%