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

Side by Side Diff: lib/google_map_point.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_nodart.html ('k') | lib/google_map_point.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « lib/google_map_nodart.html ('k') | lib/google_map_point.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698