Skip to content

Commit 7fa2ff1

Browse files
committed
Merge pull request #56 from GoogleWebComponents/updatelib
Remove default loading the places lib (perf)
2 parents 60fa52e + beea350 commit 7fa2ff1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-apis",
3-
"version": "1.0.3",
3+
"version": "1.1.0",
44
"description": "Web components to load Google API libraries",
55
"homepage": "https://googlewebcomponents.github.io/google-apis",
66
"main": "google-apis.html",

google-maps-api.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
},
6464

6565
/**
66-
* The libraries to load with this map. Defaults to "places". For more information
66+
* The libraries to load with this map. For more information
6767
* see https://developers.google.com/maps/documentation/javascript/libraries.
6868
*/
6969
libraries: {
7070
type: String,
71-
value: 'places'
71+
value: ''
7272
},
7373

7474
/**
@@ -120,7 +120,10 @@
120120

121121
_computeUrl: function(mapsUrl, version, libraries, apiKey, clientId, language, signedIn) {
122122
var url = mapsUrl + '&v=' + version;
123-
url += "&libraries=" + libraries;
123+
124+
if (libraries) {
125+
url += "&libraries=" + libraries;
126+
}
124127

125128
if (apiKey && !clientId) {
126129
url += '&key=' + apiKey;

0 commit comments

Comments
 (0)