MCPcopy Create free account
hub / github.com/tomchentw/react-google-maps / constructor

Method constructor

src/components/Rectangle.jsx:145–153  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

143 * @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Rectangle
144 */
145 constructor(props, context) {
146 super(props, context)
147 const rectangle = new google.maps.Rectangle()
148 construct(Rectangle.propTypes, updaterMap, this.props, rectangle)
149 rectangle.setMap(this.context[MAP])
150 this.state = {
151 [RECTANGLE]: rectangle,
152 }
153 }
154
155 componentDidMount() {
156 componentDidMount(this, this.state[RECTANGLE], eventMap)

Callers

nothing calls this directly

Calls 1

constructFunction · 0.90

Tested by

no test coverage detected