Skip to content

Commit 0975e11

Browse files
author
CHENG ZHANG
committed
Add DistanceMatrixService properties
1 parent 9e41bc7 commit 0975e11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stub.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ window.google = {
3838
DirectionsService: noop,
3939
DirectionsStatus: EMPTY_OBJECT,
4040
DistanceMatrixElementStatus: EMPTY_OBJECT,
41-
DistanceMatrixService: noop,
41+
DistanceMatrixService: function() {
42+
return {
43+
getDistanceMatrix: noop
44+
}
45+
},
4246
DistanceMatrixStatus: EMPTY_OBJECT,
4347
ElevationService: noop,
4448
ElevationStatus: EMPTY_OBJECT,

0 commit comments

Comments
 (0)