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

Function _checkMinZoom

src/google_map.js:73–90  ·  view source on GitHub ↗
(zoom, minZoom)

Source from the content-addressed store, hash-verified

71 isPlainObject(latLng) ? latLng : { lat: latLng[0], lng: latLng[1] };
72
73const _checkMinZoom = (zoom, minZoom) => {
74 if (process.env.NODE_ENV !== 'production') {
75 if (zoom < minZoom) {
76 console.warn(
77 'GoogleMap: ' + // eslint-disable-line
78 'minZoom option is less than recommended ' +
79 'minZoom option for your map sizes.\n' +
80 'overrided to value ' +
81 minZoom
82 );
83 }
84 }
85
86 if (minZoom < zoom) {
87 return zoom;
88 }
89 return minZoom;
90};
91
92const isFullScreen = () =>
93 document.fullscreen ||

Callers 2

componentDidUpdateMethod · 0.85
GoogleMapClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected