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

Unified Diff: lib/google_streetview_pano.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_signin_aware.dart ('k') | lib/iron_a11y_keys_behavior.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/google_streetview_pano.dart
diff --git a/lib/google_streetview_pano.dart b/lib/google_streetview_pano.dart
index 676a9e40cf3d096d50c6c06b553ae500d769ea15..98c53c41b160ca06ad0bdcb1cc18c6e13b0e130f 100644
--- a/lib/google_streetview_pano.dart
+++ b/lib/google_streetview_pano.dart
@@ -29,6 +29,16 @@ import 'google_maps_api.dart';
/// google.com/maps/views/view/102684927602131521305/photo/**1szTnskrdKIAAAGuu3fZRw**
///
/// The hash in bold is the `pano-id`. You'll often need to dial in the `heading`, `pitch` and `zoom` manually.
+///
+/// You can also use the position attribute and set it to a position with a computed value. Example: { lat: 42.345573, lng: -71.098326 }
+///
+/// <google-streetview-pano
+/// position="[[_myComputedPosition()]]"
+/// heading="330"
+/// pitch="-2"
+/// zoom="0.8"
+/// disable-default-ui>
+/// </google-streetview-pano>
@CustomElementProxy('google-streetview-pano')
class GoogleStreetviewPano extends HtmlElement with CustomElementProxyMixin, PolymerBase {
GoogleStreetviewPano.created() : super.created();
@@ -63,18 +73,10 @@ class GoogleStreetviewPano extends HtmlElement with CustomElementProxyMixin, Pol
String get language => jsElement[r'language'];
set language(String value) { jsElement[r'language'] = value; }
- /// A comma separated list (e.g. "places,geometry") of libraries to load
- /// with this map. Defaults to "places". For more information see
- /// https://developers.google.com/maps/documentation/javascript/libraries.
- String get libraries => jsElement[r'libraries'];
- set libraries(String value) { jsElement[r'libraries'] = value; }
-
get pano => jsElement[r'pano'];
set pano(value) { jsElement[r'pano'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
/// Specifies which photosphere to load
- ///
- /// **Required**
String get panoId => jsElement[r'panoId'];
set panoId(String value) { jsElement[r'panoId'] = value; }
@@ -82,6 +84,10 @@ class GoogleStreetviewPano extends HtmlElement with CustomElementProxyMixin, Pol
num get pitch => jsElement[r'pitch'];
set pitch(num value) { jsElement[r'pitch'] = value; }
+ /// Specifies which position to load
+ get position => jsElement[r'position'];
+ set position(value) { jsElement[r'position'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
+
get rAFid => jsElement[r'rAFid'];
set rAFid(value) { jsElement[r'rAFid'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
« no previous file with comments | « lib/google_signin_aware.dart ('k') | lib/iron_a11y_keys_behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698