Skip to content

Commit b9a29e2

Browse files
authored
Merge pull request #34 from eggsdesign/master
add complete list of Google Map events (as of v3.25)
2 parents b733490 + 9893260 commit b9a29e2

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

scripts/mocha_runner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ const google = {
5656
},
5757
Marker: function() {
5858
return {
59-
addListener: function() {}
59+
addListener: function() {},
60+
setMap: function() {}
6061
};
6162
},
6263
MarkerImage: function() {

src/index.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,28 @@ const mapStyles = {
1919
}
2020
}
2121

22-
const evtNames = ['ready', 'click', 'dragend', 'recenter'];
22+
const evtNames = [
23+
'ready',
24+
'click',
25+
'dragend',
26+
'recenter',
27+
'bounds_changed',
28+
'center_changed',
29+
'dblclick',
30+
'dragstart',
31+
'heading_change',
32+
'idle',
33+
'maptypeid_changed',
34+
'mousemove',
35+
'mouseout',
36+
'mouseover',
37+
'projection_changed',
38+
'resize',
39+
'rightclick',
40+
'tilesloaded',
41+
'tilt_changed',
42+
'zoom_changed'
43+
];
2344

2445
export {wrapper as GoogleApiWrapper} from './GoogleApiComponent'
2546
export {Marker} from './components/Marker'

0 commit comments

Comments
 (0)