MCPcopy Index your code
hub / github.com/google-map-react/google-map-react / GoogleMap

Class GoogleMap

src/google_map.js:98–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 document.msFullscreenElement;
97
98class 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 },

Callers

nothing calls this directly

Calls 15

generateHeatmapFunction · 0.90
optionsHeatmapFunction · 0.90
isEmptyFunction · 0.85
latLng2ObjFunction · 0.85
pickFunction · 0.85
defaultOptions_Function · 0.85
_checkMinZoomFunction · 0.85
rafFunction · 0.85
isFullScreenFunction · 0.85
detectBrowserFunction · 0.85
isPlainObjectFunction · 0.85
isNumberFunction · 0.85

Tested by

no test coverage detected