| 96 | document.msFullscreenElement; |
| 97 | |
| 98 | class GoogleMap extends Component { |
| 99 | static propTypes = { |
| 100 | apiKey: PropTypes.string, |
| 101 | bootstrapURLKeys: PropTypes.any, |
| 102 | |
| 103 | defaultCenter: PropTypes.oneOfType([ |
| 104 | PropTypes.array, |
| 105 | PropTypes.shape({ |
| 106 | lat: PropTypes.number, |
| 107 | lng: PropTypes.number, |
| 108 | }), |
| 109 | ]), |
| 110 | center: PropTypes.oneOfType([ |
| 111 | PropTypes.array, |
| 112 | PropTypes.shape({ |
| 113 | lat: PropTypes.number, |
| 114 | lng: PropTypes.number, |
| 115 | }), |
| 116 | ]), |
| 117 | defaultZoom: PropTypes.number, |
| 118 | zoom: PropTypes.number, |
| 119 | onBoundsChange: PropTypes.func, |
| 120 | onChange: PropTypes.func, |
| 121 | onClick: PropTypes.func, |
| 122 | onChildClick: PropTypes.func, |
| 123 | onChildMouseDown: PropTypes.func, |
| 124 | onChildMouseUp: PropTypes.func, |
| 125 | onChildMouseMove: PropTypes.func, |
| 126 | onChildMouseEnter: PropTypes.func, |
| 127 | onChildMouseLeave: PropTypes.func, |
| 128 | onZoomAnimationStart: PropTypes.func, |
| 129 | onZoomAnimationEnd: PropTypes.func, |
| 130 | onDrag: PropTypes.func, |
| 131 | onDragEnd: PropTypes.func, |
| 132 | onMapTypeIdChange: PropTypes.func, |
| 133 | onTilesLoaded: PropTypes.func, |
| 134 | options: PropTypes.any, |
| 135 | distanceToMouse: PropTypes.func, |
| 136 | hoverDistance: PropTypes.number, |
| 137 | debounced: PropTypes.bool, |
| 138 | margin: PropTypes.array, |
| 139 | googleMapLoader: PropTypes.any, |
| 140 | onGoogleApiLoaded: PropTypes.func, |
| 141 | yesIWantToUseGoogleMapApiInternals: PropTypes.bool, |
| 142 | draggable: PropTypes.bool, |
| 143 | style: PropTypes.any, |
| 144 | resetBoundsOnResize: PropTypes.bool, |
| 145 | layerTypes: PropTypes.arrayOf(PropTypes.string), // ['TransitLayer', 'TrafficLayer'] |
| 146 | shouldUnregisterMapOnUnmount: PropTypes.bool, |
| 147 | }; |
| 148 | |
| 149 | static defaultProps = { |
| 150 | distanceToMouse(pt, mousePos /* , markerProps */) { |
| 151 | return Math.sqrt( |
| 152 | (pt.x - mousePos.x) * (pt.x - mousePos.x) + |
| 153 | (pt.y - mousePos.y) * (pt.y - mousePos.y) |
| 154 | ); |
| 155 | }, |
nothing calls this directly
no test coverage detected