Skip to content

Commit 2d1597b

Browse files
committed
Merge pull request #32 from L1eselB/master
Enables sign-in fixes issue #31
2 parents a4f49a9 + 38c64fb commit 2d1597b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

google-maps-api.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@event api-load
3737
-->
3838

39-
<polymer-element name="google-maps-api" extends="core-shared-lib" attributes="version apiKey clientId libraries language">
39+
<polymer-element name="google-maps-api" extends="core-shared-lib" attributes="version apiKey clientId libraries language signedIn">
4040
<script>
4141

4242
Polymer({
@@ -92,6 +92,16 @@
9292
*/
9393
language: null,
9494

95+
/**
96+
* If true, sign-in is enabled.
97+
* See https://developers.google.com/maps/documentation/javascript/signedin#enable_sign_in
98+
*
99+
* @attribute signedIn
100+
* @type boolean
101+
* @default false
102+
*/
103+
signedIn: false,
104+
95105
notifyEvent: 'api-load',
96106

97107
ready: function() {
@@ -110,6 +120,10 @@
110120
url += '&language=' + this.language;
111121
}
112122

123+
if (this.signedIn) {
124+
url += '&signed_in=' + this.signedIn;
125+
}
126+
113127
this.url = url;
114128
},
115129

0 commit comments

Comments
 (0)