| OLD | NEW |
| 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_directions`. | 3 /// Dart API for the polymer element `google_map_directions`. |
| 4 @HtmlImport('google_map_directions_nodart.html') | 4 @HtmlImport('google_map_directions_nodart.html') |
| 5 library polymer_elements.lib.src.google_map.google_map_directions; | 5 library polymer_elements.lib.src.google_map.google_map_directions; |
| 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'; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 set endAddress(String value) { jsElement[r'endAddress'] = value; } | 41 set endAddress(String value) { jsElement[r'endAddress'] = value; } |
| 42 | 42 |
| 43 /// The localized language to load the Maps API with. For more information | 43 /// The localized language to load the Maps API with. For more information |
| 44 /// see https://developers.google.com/maps/documentation/javascript/basics#Lan
guage | 44 /// see https://developers.google.com/maps/documentation/javascript/basics#Lan
guage |
| 45 /// | 45 /// |
| 46 /// Note: the Maps API defaults to the preffered language setting of the brows
er. | 46 /// Note: the Maps API defaults to the preffered language setting of the brows
er. |
| 47 /// Use this parameter to override that behavior. | 47 /// Use this parameter to override that behavior. |
| 48 String get language => jsElement[r'language']; | 48 String get language => jsElement[r'language']; |
| 49 set language(String value) { jsElement[r'language'] = value; } | 49 set language(String value) { jsElement[r'language'] = value; } |
| 50 | 50 |
| 51 /// A comma separated list (e.g. "places,geometry") of libraries to load | |
| 52 /// with this map. Defaults to "places". For more information see | |
| 53 /// https://developers.google.com/maps/documentation/javascript/libraries. | |
| 54 /// | |
| 55 /// Note, this needs to be set to the same value as the one used on <google-ma
p>. | |
| 56 /// If you're overriding that element's `libraries` property, this one also | |
| 57 /// needs to be set to the Maps API loads the library code. | |
| 58 String get libraries => jsElement[r'libraries']; | |
| 59 set libraries(String value) { jsElement[r'libraries'] = value; } | |
| 60 | |
| 61 /// The Google map object. | 51 /// The Google map object. |
| 62 get map => jsElement[r'map']; | 52 get map => jsElement[r'map']; |
| 63 set map(value) { jsElement[r'map'] = (value is Map || (value is Iterable && va
lue is! JsArray)) ? new JsObject.jsify(value) : value;} | 53 set map(value) { jsElement[r'map'] = (value is Map || (value is Iterable && va
lue is! JsArray)) ? new JsObject.jsify(value) : value;} |
| 64 | 54 |
| 55 /// Options for the display of results |
| 56 get rendererOptions => jsElement[r'rendererOptions']; |
| 57 set rendererOptions(value) { jsElement[r'rendererOptions'] = (value is Map ||
(value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;} |
| 58 |
| 65 /// The response from the directions service. | 59 /// The response from the directions service. |
| 66 get response => jsElement[r'response']; | 60 get response => jsElement[r'response']; |
| 67 set response(value) { jsElement[r'response'] = (value is Map || (value is Iter
able && value is! JsArray)) ? new JsObject.jsify(value) : value;} | 61 set response(value) { jsElement[r'response'] = (value is Map || (value is Iter
able && value is! JsArray)) ? new JsObject.jsify(value) : value;} |
| 68 | 62 |
| 69 /// Start address or latlng to get directions from. | 63 /// Start address or latlng to get directions from. |
| 70 String get startAddress => jsElement[r'startAddress']; | 64 String get startAddress => jsElement[r'startAddress']; |
| 71 set startAddress(String value) { jsElement[r'startAddress'] = value; } | 65 set startAddress(String value) { jsElement[r'startAddress'] = value; } |
| 72 | 66 |
| 73 /// Travel mode to use. One of 'DRIVING', 'WALKING', 'BICYCLING', 'TRANSIT'. | 67 /// Travel mode to use. One of 'DRIVING', 'WALKING', 'BICYCLING', 'TRANSIT'. |
| 74 String get travelMode => jsElement[r'travelMode']; | 68 String get travelMode => jsElement[r'travelMode']; |
| 75 set travelMode(String value) { jsElement[r'travelMode'] = value; } | 69 set travelMode(String value) { jsElement[r'travelMode'] = value; } |
| 76 | 70 |
| 77 /// Array of intermediate waypoints. Directions will be calculated | 71 /// Array of intermediate waypoints. Directions will be calculated |
| 78 /// from the origin to the destination by way of each waypoint in this array. | 72 /// from the origin to the destination by way of each waypoint in this array. |
| 79 /// The maximum allowed waypoints is 8, plus the origin, and destination. | 73 /// The maximum allowed waypoints is 8, plus the origin, and destination. |
| 80 /// Maps API for Business customers are allowed 23 waypoints, | 74 /// Maps API for Business customers are allowed 23 waypoints, |
| 81 /// plus the origin, and destination. | 75 /// plus the origin, and destination. |
| 82 /// Waypoints are not supported for transit directions. Optional. | 76 /// Waypoints are not supported for transit directions. Optional. |
| 83 List get waypoints => jsElement[r'waypoints']; | 77 List get waypoints => jsElement[r'waypoints']; |
| 84 set waypoints(List value) { jsElement[r'waypoints'] = (value != null && value
is! JsArray) ? new JsObject.jsify(value) : value;} | 78 set waypoints(List value) { jsElement[r'waypoints'] = (value != null && value
is! JsArray) ? new JsObject.jsify(value) : value;} |
| 85 } | 79 } |
| OLD | NEW |