Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Unified Diff: lib/src/google-apis/google-maps-api.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/google-apis/google-client-loader.html ('k') | lib/src/google-chart/google-chart.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/google-apis/google-maps-api.html
diff --git a/lib/src/google-apis/google-maps-api.html b/lib/src/google-apis/google-maps-api.html
index eab4d600f45a06009e798a368da57328515897ea..261da7bac0961839e1e84b1a76d556e677a9ec0f 100644
--- a/lib/src/google-apis/google-maps-api.html
+++ b/lib/src/google-apis/google-maps-api.html
@@ -26,7 +26,7 @@ Dynamically loads the Google Maps JavaScript API, firing the `api-load` event wh
Any number of components can use `<google-maps-api>` elements, and the library will only be loaded once.
-@blurb Element wrapper around Google Maps API.
+@summary Element wrapper around Google Maps API.
*/
Polymer({
@@ -63,15 +63,6 @@ Any number of components can use `<google-maps-api>` elements, and the library w
},
/**
- * The libraries to load with this map. For more information
- * see https://developers.google.com/maps/documentation/javascript/libraries.
- */
- libraries: {
- type: String,
- value: ''
- },
-
- /**
* Version of the Maps API to use.
*/
version: {
@@ -114,16 +105,15 @@ Any number of components can use `<google-maps-api>` elements, and the library w
/** @private */
libraryUrl: {
type: String,
- computed: '_computeUrl(mapsUrl, version, libraries, apiKey, clientId, language, signedIn)'
+ computed: '_computeUrl(mapsUrl, version, apiKey, clientId, language, signedIn)'
}
},
- _computeUrl: function(mapsUrl, version, libraries, apiKey, clientId, language, signedIn) {
+ _computeUrl: function(mapsUrl, version, apiKey, clientId, language, signedIn) {
var url = mapsUrl + '&v=' + version;
- if (libraries) {
- url += "&libraries=" + libraries;
- }
+ // Always load all Maps API libraries.
+ url += '&libraries=drawing,geometry,places,visualization';
if (apiKey && !clientId) {
url += '&key=' + apiKey;
« no previous file with comments | « lib/src/google-apis/google-client-loader.html ('k') | lib/src/google-chart/google-chart.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698