@@ -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' , 'draggableCursor'
37
+ 'backgroundColor' , 'draggableCursor' , 'draggingCursor'
38
38
] ,
39
39
outputs : [ 'mapClick' , 'mapRightClick' , 'mapDblClick' , 'centerChange' ] ,
40
40
host : { '[class.sebm-google-map-container]' : 'true' } ,
@@ -79,16 +79,24 @@ export class SebmGoogleMap implements OnChanges,
79
79
/**
80
80
* The name or url of the cursor to display when mousing over a draggable map. This property uses
81
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;'"
82
+ * least one fallback cursor that is not a URL. For example:
83
+ * [ draggableCursor] ="'url(http://www.example.com/icon.png), auto;'"
84
84
*/
85
85
draggableCursor : string ;
86
86
87
+ /**
88
+ * The name or url of the cursor to display when the map is being dragged. This property uses the
89
+ * css cursor attribute to change the icon. As with the css property, you must specify at least
90
+ * one fallback cursor that is not a URL. For example:
91
+ * [draggingCursor]="'url(http://www.example.com/icon.png), auto;'"
92
+ */
93
+ draggingCursor : string ;
94
+
87
95
/**
88
96
* Map option attributes that can change over time
89
97
*/
90
98
private static _mapOptionsAttributes : string [ ] =
91
- [ 'disableDoubleClickZoom' , 'scrollwheel' , 'draggableCursor' ] ;
99
+ [ 'disableDoubleClickZoom' , 'scrollwheel' , 'draggableCursor' , 'draggingCursor' ] ;
92
100
93
101
/**
94
102
* This event emitter gets emitted when the user clicks on the map (but not when they click on a
@@ -127,7 +135,8 @@ export class SebmGoogleMap implements OnChanges,
127
135
zoom : this . _zoom ,
128
136
disableDefaultUI : this . disableDefaultUI ,
129
137
backgroundColor : this . backgroundColor ,
130
- draggableCursor : this . draggableCursor
138
+ draggableCursor : this . draggableCursor ,
139
+ draggingCursor : this . draggingCursor
131
140
} ) ;
132
141
this . _handleMapCenterChange ( ) ;
133
142
this . _handleMapZoomChange ( ) ;
0 commit comments