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

Function defaultOptions_

src/google_map.js:52–68  ·  view source on GitHub ↗
(/* maps */)

Source from the content-addressed store, hash-verified

50 : ReactDOM.unstable_renderSubtreeIntoContainer;
51
52function defaultOptions_(/* maps */) {
53 return {
54 overviewMapControl: false,
55 streetViewControl: false,
56 rotateControl: true,
57 mapTypeControl: false,
58 // disable poi
59 styles: [
60 {
61 featureType: 'poi',
62 elementType: 'labels',
63 stylers: [{ visibility: 'off' }],
64 },
65 ],
66 minZoom: DEFAULT_MIN_ZOOM, // dynamically recalculted if possible during init
67 };
68}
69
70const latLng2Obj = (latLng) =>
71 isPlainObject(latLng) ? latLng : { lat: latLng[0], lng: latLng[1] };

Callers 1

GoogleMapClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected