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 77b71da

Browse files
Merge pull request #2 from tofucubes/patch-2
bump version
2 parents 225b2b9 + 39a2510 commit 77b71da

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "googlemaps-js-api-stub",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Google Maps Javascript API Stub",
55
"main": "stub.js",
66
"repository": {

‎stub.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ window.google = {
5555
return {
5656
getSouthWest: function() { return sw; },
5757
getNorthEast: function() { return ne; },
58+
toJSON: () => ({
59+
south: sw ? (sw.lat || sw.latitude) : 0,
60+
north: ne ? (ne.lat || ne.latitude) : 0,
61+
west: sw ? (sw.lng || sw.longitude) : 0,
62+
east: ne ? (ne.lng || ne.longitude) : 0,
63+
}),
5864
};
5965
},
6066
Map: function() {

0 commit comments

Comments
(0)

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