@@ -141,32 +141,43 @@ export class Map extends React.Component {
141
141
const mapConfig = Object . assign (
142
142
{ } ,
143
143
{
144
- mapTypeId : mapTypeIds [ mapTypeFromProps ] ,
144
+ mapTypeId : this . props . mapTypeId || mapTypeIds [ mapTypeFromProps ] ,
145
145
center : center ,
146
- zoom : this . props . zoom ,
147
- maxZoom : this . props . maxZoom ,
148
- minZoom : this . props . minZoom ,
146
+ backgroundColor : this . props . backgroundColor ,
149
147
clickableIcons : ! ! this . props . clickableIcons ,
150
148
disableDefaultUI : this . props . disableDefaultUI ,
151
- zoomControl : this . props . zoomControl ,
152
- zoomControlOptions : this . props . zoomControlOptions ,
149
+ disableDoubleClickZoom : this . props . disableDoubleClickZoom ,
150
+ draggable : this . props . draggable ,
151
+ draggableCursor : this . props . draggableCursor ,
152
+ draggingCursor : this . props . draggingCursor ,
153
+ fullscreenControl : this . props . fullscreenControl ,
154
+ fullscreenControlOptions : this . props . fullscreenControlOptions ,
155
+ gestureHandling : this . props . gestureHandling ,
156
+ heading : this . props . heading ,
157
+ keyboardShortcuts : this . props . keyboardShortcuts ,
153
158
mapTypeControl : this . props . mapTypeControl ,
154
159
mapTypeControlOptions : this . props . mapTypeControlOptions ,
155
- scaleControl : this . props . scaleControl ,
156
- streetViewControl : this . props . streetViewControl ,
157
- streetViewControlOptions : this . props . streetViewControlOptions ,
160
+ maxZoom : this . props . maxZoom ,
161
+ minZoom : this . props . minZoom ,
162
+ noClear : this . props . noClear ,
163
+ overviewMapControl : this . props . overviewMapControl ,
164
+ overviewMapControlOptions : this . props . overviewMapControlOptions ,
158
165
panControl : this . props . panControl ,
166
+ panControlOptions : this . props . panControlOptions ,
159
167
rotateControl : this . props . rotateControl ,
160
- fullscreenControl : this . props . fullscreenControl ,
168
+ rotateControlOptions : this . props . rotateControlOptions ,
169
+ scaleControl : this . props . scaleControl ,
170
+ scaleControlOptions : this . props . scaleControlOptions ,
161
171
scrollwheel : this . props . scrollwheel ,
162
- draggable : this . props . draggable ,
163
- draggableCursor : this . props . draggableCursor ,
164
- keyboardShortcuts : this . props . keyboardShortcuts ,
165
- disableDoubleClickZoom : this . props . disableDoubleClickZoom ,
166
- noClear : this . props . noClear ,
172
+ signInControl : this . props . signInControl ,
173
+ streetView : this . props . streetView ,
174
+ streetViewControl : this . props . streetViewControl ,
175
+ streetViewControlOptions : this . props . streetViewControlOptions ,
167
176
styles : this . props . styles ,
168
- gestureHandling : this . props . gestureHandling ,
169
- backgroundColor : this . props . backgroundColor
177
+ tilt : this . props . tilt ,
178
+ zoom : this . props . zoom ,
179
+ zoomControl : this . props . zoomControl ,
180
+ zoomControlOptions : this . props . zoomControlOptions
170
181
}
171
182
) ;
172
183
@@ -269,38 +280,51 @@ export class Map extends React.Component {
269
280
270
281
Map . propTypes = {
271
282
google : PropTypes . object ,
272
- zoom : PropTypes . number ,
273
283
centerAroundCurrentLocation : PropTypes . bool ,
274
- center : PropTypes . object ,
275
284
initialCenter : PropTypes . object ,
276
285
className : PropTypes . string ,
277
286
style : PropTypes . object ,
278
287
containerStyle : PropTypes . object ,
279
288
visible : PropTypes . bool ,
280
289
mapType : PropTypes . string ,
281
- maxZoom : PropTypes . number ,
282
- minZoom : PropTypes . number ,
290
+ bounds : PropTypes . object ,
291
+ backgroundColor : PropTypes . string ,
292
+ center : PropTypes . object ,
283
293
clickableIcons : PropTypes . bool ,
284
294
disableDefaultUI : PropTypes . bool ,
285
- zoomControl : PropTypes . bool ,
286
- zoomControlOptions : PropTypes . object ,
287
- mapTypeControl : PropTypes . bool ,
288
- mapTypeControlOptions : PropTypes . bool ,
289
- scaleControl : PropTypes . bool ,
290
- streetViewControl : PropTypes . bool ,
291
- streetViewControlOptions : PropTypes . object ,
292
- panControl : PropTypes . bool ,
293
- rotateControl : PropTypes . bool ,
294
- fullscreenControl : PropTypes . bool ,
295
- scrollwheel : PropTypes . bool ,
295
+ disableDoubleClickZoom : PropTypes . bool ,
296
296
draggable : PropTypes . bool ,
297
297
draggableCursor : PropTypes . string ,
298
+ draggingCursor : PropTypes . string ,
299
+ fullscreenControl : PropTypes . bool ,
300
+ fullscreenControlOptions : PropTypes . object ,
301
+ gestureHandling : PropTypes . string ,
302
+ heading : PropTypes . number ,
298
303
keyboardShortcuts : PropTypes . bool ,
299
- disableDoubleClickZoom : PropTypes . bool ,
304
+ mapTypeControl : PropTypes . bool ,
305
+ mapTypeControlOptions : PropTypes . object ,
306
+ mapTypeId : PropTypes . string ,
307
+ maxZoom : PropTypes . number ,
308
+ minZoom : PropTypes . number ,
300
309
noClear : PropTypes . bool ,
310
+ overviewMapControl : PropTypes . bool ,
311
+ overviewMapControlOptions : PropTypes . object ,
312
+ panControl : PropTypes . bool ,
313
+ panControlOptions : PropTypes . object ,
314
+ rotateControl : PropTypes . bool ,
315
+ rotateControlOptions : PropTypes . object ,
316
+ scaleControl : PropTypes . bool ,
317
+ scaleControlOptions : PropTypes . object ,
318
+ scrollwheel : PropTypes . bool ,
319
+ signInControl : PropTypes . bool ,
320
+ streetView : PropTypes . object ,
321
+ streetViewControl : PropTypes . bool ,
322
+ streetViewControlOptions : PropTypes . object ,
301
323
styles : PropTypes . array ,
302
- gestureHandling : PropTypes . string ,
303
- bounds : PropTypes . object
324
+ tilt : PropTypes . number ,
325
+ zoom : PropTypes . number ,
326
+ zoomControl : PropTypes . bool ,
327
+ zoomControlOptions : PropTypes . object
304
328
} ;
305
329
306
330
evtNames . forEach ( e => ( Map . propTypes [ camelize ( e ) ] = PropTypes . func ) ) ;
0 commit comments