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

Unified Diff: lib/google_map_search.dart

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/google_map_poly_nodart.html ('k') | lib/google_maps_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/google_map_search.dart
diff --git a/lib/google_map_search.dart b/lib/google_map_search.dart
index fac3fbd1e88275c67ccd3cc99e08fb4de84ae88d..70cd4679fd129b80796f83b5d4bcdc1ff1b5c67b 100644
--- a/lib/google_map_search.dart
+++ b/lib/google_map_search.dart
@@ -17,8 +17,8 @@ import 'package:polymer_interop/polymer_interop.dart';
/// #### Example:
///
/// <template is="dom-bind">
-/// <google-map-search map="[[map]]" libraries="places" query="Pizza"
-/// results="{{results}}"></google-map-search>
+/// <google-map-search map="[[map]]" query="Pizza" results="{{results}}">
+/// </google-map-search>
/// <google-map map="{{map}}" latitude="37.779"
/// longitude="-122.3892">
/// <template is="dom-repeat" items="{{results}}" as="marker">
@@ -85,6 +85,11 @@ class GoogleMapSearch extends HtmlElement with CustomElementProxyMixin, PolymerB
String get types => jsElement[r'types'];
set types(String value) { jsElement[r'types'] = value; }
+ /// Fetches details for a given place.
+ /// [placeId]: The place id.
+ getDetails(String placeId) =>
+ jsElement.callMethod('getDetails', [placeId]);
+
/// Perform a search using for `query` for the search term.
search() =>
jsElement.callMethod('search', []);
« no previous file with comments | « lib/google_map_poly_nodart.html ('k') | lib/google_maps_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698