Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentDidMount = () => {
- const rectangle = new google.maps.Rectangle({
- ...this.props.options,
- map: this.context
- })
- this.setState({ rectangle }, () => {
- this.registeredEvents = applyUpdatesAndRegisterEvents({
- updaterMap,
- eventMap,
- prevProps: {},
- nextProps: this.props,
- instance: this.state.rectangle
- })
- })
- }
Add Comment
Please, Sign In to add comment