Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 94b25fc

Browse files
author
CHENG ZHANG
committed
Fill in blanks
1 parent 7310289 commit 94b25fc

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

‎stub.js‎

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,23 @@ window.google = {
1818
};
1919
},
2020
},
21+
controls: {
22+
"right_bottom": EMPTY_ARRAY
23+
},
2124

2225
Animation: EMPTY_OBJECT,
2326
Attribution: EMPTY_OBJECT,
2427
BicyclingLayer: noop,
2528
Circle: noop,
26-
ControlPosition: EMPTY_OBJECT,
29+
ControlPosition: {
30+
RIGHT_BOTTOM: "right_bottom"
31+
},
2732
Data: noop,
28-
DirectionsRenderer: noop,
33+
DirectionsRenderer: function() {
34+
return {
35+
setMap: noop
36+
}
37+
},
2938
DirectionsService: noop,
3039
DirectionsStatus: EMPTY_OBJECT,
3140
DistanceMatrixElementStatus: EMPTY_OBJECT,
@@ -39,7 +48,12 @@ window.google = {
3948
GeocoderStatus: EMPTY_OBJECT,
4049
GroundOverlay: noop,
4150
ImageMapType: noop,
42-
InfoWindow: fnEmptyObject,
51+
InfoWindow: function() {
52+
return {
53+
addListener: noop,
54+
close: noop
55+
}
56+
},
4357
KmlLayer: noop,
4458
KmlLayerStatus: EMPTY_OBJECT,
4559
LatLng: function(lat, lng) {
@@ -53,6 +67,7 @@ window.google = {
5367
},
5468
LatLngBounds: function(ne, sw) {
5569
return {
70+
extend: noop,
5671
getSouthWest: function() { return sw; },
5772
getNorthEast: function() { return ne; },
5873
toJSON: () => ({
@@ -61,8 +76,6 @@ window.google = {
6176
west: sw ? (sw.lng || sw.longitude) : 0,
6277
east: ne ? (ne.lng || ne.longitude) : 0,
6378
}),
64-
union: noop,
65-
extend: noop,
6679
};
6780
},
6881
Map: function() {
@@ -88,7 +101,9 @@ window.google = {
88101
setStreetView: noop,
89102
setTilt: noop,
90103
setZoom: noop,
91-
controls: EMPTY_OBJECT,
104+
controls: {
105+
"right_bottom": EMPTY_ARRAY
106+
},
92107
data: {
93108
add: noop,
94109
addListener: noop,
@@ -145,6 +160,9 @@ window.google = {
145160
setTitle: noop,
146161
setVisible: noop,
147162
setZIndex: noop,
163+
setIcon: noop,
164+
addListener: noop,
165+
getPosition: noop
148166
};
149167
},
150168
MarkerImage: fnEmptyObject,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /