Skip to content

Commit

Permalink
Merge pull request #56 from GoogleWebComponents/updatelib
Browse files Browse the repository at this point in the history
Remove default loading the places lib (perf)
  • Loading branch information
ebidel committed Sep 4, 2015
2 parents 60fa52e + beea350 commit 7fa2ff1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-apis",
"version": "1.0.3",
"version": "1.1.0",
"description": "Web components to load Google API libraries",
"homepage": "https://googlewebcomponents.github.io/google-apis",
"main": "google-apis.html",
Expand Down
9 changes: 6 additions & 3 deletions google-maps-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
},

/**
* The libraries to load with this map. Defaults to "places". For more information
* The libraries to load with this map. For more information
* see https://developers.google.com/maps/documentation/javascript/libraries.
*/
libraries: {
type: String,
value: 'places'
value: ''
},

/**
Expand Down Expand Up @@ -120,7 +120,10 @@

_computeUrl: function(mapsUrl, version, libraries, apiKey, clientId, language, signedIn) {
var url = mapsUrl + '&v=' + version;
url += "&libraries=" + libraries;

if (libraries) {
url += "&libraries=" + libraries;
}

if (apiKey && !clientId) {
url += '&key=' + apiKey;
Expand Down

0 comments on commit 7fa2ff1

Please sign in to comment.