@@ -33,7 +33,8 @@ import {MouseEvent} from '../events';
33
33
selector : 'sebm-google-map' ,
34
34
providers : [ GoogleMapsAPIWrapper , MarkerManager ] ,
35
35
inputs : [
36
- 'longitude' , 'latitude' , 'zoom' , 'disableDoubleClickZoom' , 'disableDefaultUI' , 'scrollwheel'
36
+ 'longitude' , 'latitude' , 'zoom' , 'disableDoubleClickZoom' , 'disableDefaultUI' , 'scrollwheel' ,
37
+ 'backgroundColor'
37
38
] ,
38
39
outputs : [ 'mapClick' , 'mapRightClick' , 'mapDblClick' , 'centerChange' ] ,
39
40
host : { '[class.sebm-google-map-container]' : 'true' } ,
@@ -69,6 +70,12 @@ export class SebmGoogleMap implements OnChanges,
69
70
*/
70
71
scrollwheel : boolean = true ;
71
72
73
+ /**
74
+ * Color used for the background of the Map div. This color will be visible when tiles have not
75
+ * yet loaded as the user pans. This option can only be set when the map is initialized.
76
+ */
77
+ backgroundColor : string ;
78
+
72
79
/**
73
80
* Map option attributes that can change over time
74
81
*/
@@ -109,7 +116,8 @@ export class SebmGoogleMap implements OnChanges,
109
116
this . _mapsWrapper . createMap ( el , {
110
117
center : { lat : this . _latitude , lng : this . _longitude } ,
111
118
zoom : this . _zoom ,
112
- disableDefaultUI : this . disableDefaultUI
119
+ disableDefaultUI : this . disableDefaultUI ,
120
+ backgroundColor : this . backgroundColor
113
121
} ) ;
114
122
this . _handleMapCenterChange ( ) ;
115
123
this . _handleMapZoomChange ( ) ;
0 commit comments