| 50 | : ReactDOM.unstable_renderSubtreeIntoContainer; |
| 51 | |
| 52 | function 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 | |
| 70 | const latLng2Obj = (latLng) => |
| 71 | isPlainObject(latLng) ? latLng : { lat: latLng[0], lng: latLng[1] }; |