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

Side by Side 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, 1 month 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update`
2 2
3 /// Dart API for the polymer element `google_map_search`. 3 /// Dart API for the polymer element `google_map_search`.
4 @HtmlImport('google_map_search_nodart.html') 4 @HtmlImport('google_map_search_nodart.html')
5 library polymer_elements.lib.src.google_map.google_map_search; 5 library polymer_elements.lib.src.google_map.google_map_search;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:js' show JsArray, JsObject; 8 import 'dart:js' show JsArray, JsObject;
9 import 'package:web_components/web_components.dart'; 9 import 'package:web_components/web_components.dart';
10 import 'package:polymer_interop/polymer_interop.dart'; 10 import 'package:polymer_interop/polymer_interop.dart';
11 11
12 /// `google-map-search` provides Google Maps Places API functionality. 12 /// `google-map-search` provides Google Maps Places API functionality.
13 /// 13 ///
14 /// See https://developers.google.com/maps/documentation/javascript/places for m ore 14 /// See https://developers.google.com/maps/documentation/javascript/places for m ore
15 /// information on the API. 15 /// information on the API.
16 /// 16 ///
17 /// #### Example: 17 /// #### Example:
18 /// 18 ///
19 /// <template is="dom-bind"> 19 /// <template is="dom-bind">
20 /// <google-map-search map="[[map]]" libraries="places" query="Pizza" 20 /// <google-map-search map="[[map]]" query="Pizza" results="{{results}}">
21 /// results="{{results}}"></google-map-search> 21 /// </google-map-search>
22 /// <google-map map="{{map}}" latitude="37.779" 22 /// <google-map map="{{map}}" latitude="37.779"
23 /// longitude="-122.3892"> 23 /// longitude="-122.3892">
24 /// <template is="dom-repeat" items="{{results}}" as="marker"> 24 /// <template is="dom-repeat" items="{{results}}" as="marker">
25 /// <google-map-marker latitude="{{marker.latitude}}" 25 /// <google-map-marker latitude="{{marker.latitude}}"
26 /// longitude="{{marker.longitude}}"> 26 /// longitude="{{marker.longitude}}">
27 /// <h2>{{marker.name}}</h2> 27 /// <h2>{{marker.name}}</h2>
28 /// <span>{{marker.formatted_address}}</span> 28 /// <span>{{marker.formatted_address}}</span>
29 /// </google-map-marker> 29 /// </google-map-marker>
30 /// </template> 30 /// </template>
31 /// </google-map> 31 /// </google-map>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 set results(List value) { jsElement[r'results'] = (value != null && value is! JsArray) ? new JsObject.jsify(value) : value;} 78 set results(List value) { jsElement[r'results'] = (value != null && value is! JsArray) ? new JsObject.jsify(value) : value;}
79 79
80 /// Space-separated list of result types. 80 /// Space-separated list of result types.
81 /// The search will only return results of the listed types. 81 /// The search will only return results of the listed types.
82 /// See https://developers.google.com/places/documentation/supported_types 82 /// See https://developers.google.com/places/documentation/supported_types
83 /// for a list of supported types. 83 /// for a list of supported types.
84 /// Leave empty or null to search for all result types. 84 /// Leave empty or null to search for all result types.
85 String get types => jsElement[r'types']; 85 String get types => jsElement[r'types'];
86 set types(String value) { jsElement[r'types'] = value; } 86 set types(String value) { jsElement[r'types'] = value; }
87 87
88 /// Fetches details for a given place.
89 /// [placeId]: The place id.
90 getDetails(String placeId) =>
91 jsElement.callMethod('getDetails', [placeId]);
92
88 /// Perform a search using for `query` for the search term. 93 /// Perform a search using for `query` for the search term.
89 search() => 94 search() =>
90 jsElement.callMethod('search', []); 95 jsElement.callMethod('search', []);
91 } 96 }
OLDNEW
« 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