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

Unified Diff: lib/google_map.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_chart.dart ('k') | lib/google_map.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/google_map.dart
diff --git a/lib/google_map.dart b/lib/google_map.dart
index b3c148ef31d1447b63c35159ef8401103daf4578..e9de7ea222dc779fdeb66c2d94da94b4a7313d08 100644
--- a/lib/google_map.dart
+++ b/lib/google_map.dart
@@ -10,6 +10,7 @@ import 'package:web_components/web_components.dart';
import 'package:polymer_interop/polymer_interop.dart';
import 'iron_resizable_behavior.dart';
import 'google_maps_api.dart';
+import 'iron_selector.dart';
import 'google_map_marker.dart';
/// The `google-map` element renders a Google Map.
@@ -45,7 +46,7 @@ import 'google_map_marker.dart';
///
/// <b>Example</b> - with Google directions, using data-binding inside another Polymer element
///
-/// <google-map map="{{map}}" libraries="places"></google-map>
+/// <google-map map="{{map}}"></google-map>
/// <google-map-directions map="{{map}}"
/// start-address="San Francisco" end-address="Mountain View">
/// </google-map-directions>
@@ -106,12 +107,6 @@ class GoogleMap extends HtmlElement with CustomElementProxyMixin, PolymerBase, I
num get latitude => jsElement[r'latitude'];
set latitude(num value) { jsElement[r'latitude'] = value; }
- /// A comma separated list (e.g. "places,geometry") of libraries to load
- /// with this map. Defaults to "". 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; }
-
/// A longitude to center the map on.
num get longitude => jsElement[r'longitude'];
set longitude(num value) { jsElement[r'longitude'] = value; }
@@ -144,11 +139,19 @@ class GoogleMap extends HtmlElement with CustomElementProxyMixin, PolymerBase, I
bool get noAutoTilt => jsElement[r'noAutoTilt'];
set noAutoTilt(bool value) { jsElement[r'noAutoTilt'] = value; }
+ /// The non-marker objects on the map.
+ List get objects => jsElement[r'objects'];
+ set objects(List value) { jsElement[r'objects'] = (value != null && value is! JsArray) ? new JsObject.jsify(value) : value;}
+
/// If true, sign-in is enabled.
/// See https://developers.google.com/maps/documentation/javascript/signedin#enable_sign_in
bool get signedIn => jsElement[r'signedIn'];
set signedIn(bool value) { jsElement[r'signedIn'] = value; }
+ /// If set, all other info windows on markers are closed when opening a new one.
+ bool get singleInfoWindow => jsElement[r'singleInfoWindow'];
+ set singleInfoWindow(bool value) { jsElement[r'singleInfoWindow'] = value; }
+
/// If set, custom styles can be applied to the map.
/// For style documentation see developers.google.com/maps/documentation/javascript/reference#MapTypeStyle
get styles => jsElement[r'styles'];
« no previous file with comments | « lib/google_chart.dart ('k') | lib/google_map.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698