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

Method constructor

src/macros/Rectangle.jsx:46–54  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

44 * @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Rectangle
45 */
46 constructor(props, context) {
47 super(props, context)
48 const rectangle = new google.maps.Rectangle()
49 construct(Rectangle.propTypes, updaterMap, this.props, rectangle)
50 rectangle.setMap(this.context[MAP])
51 this.state = {
52 [RECTANGLE]: rectangle,
53 }
54 }
55
56 componentDidMount() {
57 componentDidMount(this, this.state[RECTANGLE], eventMap)

Callers

nothing calls this directly

Calls 1

constructFunction · 0.90

Tested by

no test coverage detected