@@ -34,7 +34,7 @@ import {MouseEvent} from '../events';
34
34
providers : [ GoogleMapsAPIWrapper , MarkerManager ] ,
35
35
inputs : [
36
36
'longitude' , 'latitude' , 'zoom' , 'disableDoubleClickZoom' , 'disableDefaultUI' , 'scrollwheel' ,
37
- 'backgroundColor'
37
+ 'backgroundColor' , 'draggableCursor'
38
38
] ,
39
39
outputs : [ 'mapClick' , 'mapRightClick' , 'mapDblClick' , 'centerChange' ] ,
40
40
host : { '[class.sebm-google-map-container]' : 'true' } ,
@@ -76,10 +76,19 @@ export class SebmGoogleMap implements OnChanges,
76
76
*/
77
77
backgroundColor : string ;
78
78
79
+ /**
80
+ * The name or url of the cursor to display when mousing over a draggable map. This property uses
81
+ * the css * cursor attribute to change the icon. As with the css property, you must specify at
82
+ * least one fallback * cursor that is not a URL. For example:
83
+ * draggableCursor="'url(http://www.example.com/icon.png), auto;'"
84
+ */
85
+ draggableCursor : string ;
86
+
79
87
/**
80
88
* Map option attributes that can change over time
81
89
*/
82
- private static _mapOptionsAttributes : string [ ] = [ 'disableDoubleClickZoom' , 'scrollwheel' ] ;
90
+ private static _mapOptionsAttributes : string [ ] =
91
+ [ 'disableDoubleClickZoom' , 'scrollwheel' , 'draggableCursor' ] ;
83
92
84
93
/**
85
94
* This event emitter gets emitted when the user clicks on the map (but not when they click on a
@@ -117,7 +126,8 @@ export class SebmGoogleMap implements OnChanges,
117
126
center : { lat : this . _latitude , lng : this . _longitude } ,
118
127
zoom : this . _zoom ,
119
128
disableDefaultUI : this . disableDefaultUI ,
120
- backgroundColor : this . backgroundColor
129
+ backgroundColor : this . backgroundColor ,
130
+ draggableCursor : this . draggableCursor
121
131
} ) ;
122
132
this . _handleMapCenterChange ( ) ;
123
133
this . _handleMapZoomChange ( ) ;
0 commit comments