OLD | NEW |
(Empty) | |
| 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` |
| 2 |
| 3 /// Dart API for the polymer element `google_map_point`. |
| 4 @HtmlImport('google_map_point_nodart.html') |
| 5 library polymer_elements.lib.src.google_map.google_map_point; |
| 6 |
| 7 import 'dart:html'; |
| 8 import 'dart:js' show JsArray, JsObject; |
| 9 import 'package:web_components/web_components.dart'; |
| 10 import 'package:polymer_interop/polymer_interop.dart'; |
| 11 import 'google_maps_api.dart'; |
| 12 |
| 13 /// The `google-map-point` element represents a point on a map. It's used as a c
hild of other |
| 14 /// google-map-* elements. |
| 15 /// |
| 16 /// <b>Example</b>—points defining a semi-translucent blue triangle: |
| 17 /// |
| 18 /// <google-map latitude="37.77493" longitude="-122.41942"> |
| 19 /// <google-map-poly closed fill-color="blue" fill-opacity=".5"> |
| 20 /// <google-map-point latitude="36.77493" longitude="-121.41942"></googl
e-map-point> |
| 21 /// <google-map-point latitude="38.77493" longitude="-122.41942"></googl
e-map-point> |
| 22 /// <google-map-point latitude="36.77493" longitude="-123.41942"></googl
e-map-point> |
| 23 /// </google-map-poly> |
| 24 /// </google-map> |
| 25 @CustomElementProxy('google-map-point') |
| 26 class GoogleMapPoint extends HtmlElement with CustomElementProxyMixin, PolymerBa
se { |
| 27 GoogleMapPoint.created() : super.created(); |
| 28 factory GoogleMapPoint() => new Element.tag('google-map-point'); |
| 29 |
| 30 /// The point's latitude coordinate. |
| 31 num get latitude => jsElement[r'latitude']; |
| 32 set latitude(num value) { jsElement[r'latitude'] = value; } |
| 33 |
| 34 /// The point's longitude coordinate. |
| 35 num get longitude => jsElement[r'longitude']; |
| 36 set longitude(num value) { jsElement[r'longitude'] = value; } |
| 37 |
| 38 /// Returns the point as a Google Maps LatLng object. |
| 39 getPosition() => |
| 40 jsElement.callMethod('getPosition', []); |
| 41 } |
OLD | NEW |