Guest User

Untitled

a guest
Feb 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. componentDidMount = () => {
  2. const rectangle = new google.maps.Rectangle({
  3. ...this.props.options,
  4. map: this.context
  5. })
  6.  
  7. this.setState({ rectangle }, () => {
  8. this.registeredEvents = applyUpdatesAndRegisterEvents({
  9. updaterMap,
  10. eventMap,
  11. prevProps: {},
  12. nextProps: this.props,
  13. instance: this.state.rectangle
  14. })
  15. })
  16. }
Add Comment
Please, Sign In to add comment