File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,6 @@ function defaultOptions_(/* maps */) {
56
56
} ;
57
57
}
58
58
59
- const style = {
60
- width : '100%' ,
61
- height : '100%' ,
62
- margin : 0 ,
63
- padding : 0 ,
64
- position : 'relative' ,
65
- } ;
66
-
67
59
const latLng2Obj = ( latLng ) => isPlainObject ( latLng )
68
60
? latLng
69
61
: { lat : latLng [ 0 ] , lng : latLng [ 1 ] } ;
@@ -110,6 +102,7 @@ export default class GoogleMap extends Component {
110
102
onGoogleApiLoaded : PropTypes . func ,
111
103
yesIWantToUseGoogleMapApiInternals : PropTypes . bool ,
112
104
draggable : PropTypes . bool ,
105
+ style : PropTypes . any ,
113
106
} ;
114
107
115
108
static defaultProps = {
@@ -123,6 +116,13 @@ export default class GoogleMap extends Component {
123
116
options : defaultOptions_ ,
124
117
googleMapLoader,
125
118
yesIWantToUseGoogleMapApiInternals : false ,
119
+ style : {
120
+ width : '100%' ,
121
+ height : '100%' ,
122
+ margin : 0 ,
123
+ padding : 0 ,
124
+ position : 'relative' ,
125
+ } ,
126
126
} ;
127
127
128
128
static googleMapLoader = googleMapLoader ; // eslint-disable-line
@@ -869,7 +869,7 @@ export default class GoogleMap extends Component {
869
869
870
870
return (
871
871
< div
872
- style = { style }
872
+ style = { this . props . style }
873
873
onMouseMove = { this . _onMapMouseMove }
874
874
onMouseDownCapture = { this . _onMapMouseDownCapture }
875
875
onClick = { this . _onMapClick }
You can’t perform that action at this time.
0 commit comments