(props, context)
| 93 | * @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#OverlayView |
| 94 | */ |
| 95 | function OverlayView(props, context) { |
| 96 | ;(0, _classCallCheck3.default)(this, OverlayView) |
| 97 | |
| 98 | var _this = (0, _possibleConstructorReturn3.default)( |
| 99 | this, |
| 100 | ( |
| 101 | OverlayView.__proto__ || (0, _getPrototypeOf2.default)(OverlayView) |
| 102 | ).call(this, props, context) |
| 103 | ) |
| 104 | |
| 105 | var overlayView = new google.maps.OverlayView() |
| 106 | // You must implement three methods: onAdd(), draw(), and onRemove(). |
| 107 | overlayView.onAdd = (0, _bind3.default)(_this.onAdd, _this) |
| 108 | overlayView.draw = (0, _bind3.default)(_this.draw, _this) |
| 109 | overlayView.onRemove = (0, _bind3.default)(_this.onRemove, _this) |
| 110 | _this.onPositionElement = (0, _bind3.default)( |
| 111 | _this.onPositionElement, |
| 112 | _this |
| 113 | ) |
| 114 | // You must call setMap() with a valid Map object to trigger the call to |
| 115 | // the onAdd() method and setMap(null) in order to trigger the onRemove() method. |
| 116 | overlayView.setMap(_this.context[_constants.MAP]) |
| 117 | _this.state = (0, _defineProperty3.default)( |
| 118 | {}, |
| 119 | _constants.OVERLAY_VIEW, |
| 120 | overlayView |
| 121 | ) |
| 122 | return _this |
| 123 | } |
| 124 | |
| 125 | ;(0, _createClass3.default)(OverlayView, [ |
| 126 | { |
nothing calls this directly
no outgoing calls
no test coverage detected