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

Unified Diff: src/site/samples/google_maps/example/index.dart

Issue 1387723002: Updating the samples page to reflect the examples that have been retired. (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: 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 | « src/site/samples/gauge/index.markdown ('k') | src/site/samples/google_maps/example/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/google_maps/example/index.dart
diff --git a/src/site/samples/google_maps/example/index.dart b/src/site/samples/google_maps/example/index.dart
deleted file mode 100644
index fb56b85fdb6ba646e25dd7c045c4675919851fc9..0000000000000000000000000000000000000000
--- a/src/site/samples/google_maps/example/index.dart
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library google_maps;
-
-// This code is derived from
-// https://developers.google.com/maps/documentation/javascript/tutorial#HelloWorld
-// You can view the original JavaScript example at
-// https://developers.google.com/maps/documentation/javascript/examples/map-simple
-
-import 'dart:html' show querySelector;
-import 'dart:js' show context, JsObject;
-
-void main() {
- // The top-level getter context provides a JsObject that represents the global
- // object in JavaScript.
- final google_maps = context['google']['maps'];
-
- // new JsObject() constructs a new JavaScript object and returns a proxy
- // to it.
- var center = new JsObject(google_maps['LatLng'], [-34.397, 150.644]);
-
- var mapTypeId = google_maps['MapTypeId']['ROADMAP'];
-
- // new JsObject.jsify() recursively converts a collection of Dart objects
- // to a collection of JavaScript objects and returns a proxy to it.
- var mapOptions = new JsObject.jsify({
- "center": center,
- "zoom": 8,
- "mapTypeId": mapTypeId
- });
-
- // Nodes are passed though, or transferred, not proxied.
- new JsObject(google_maps['Map'], [querySelector('#map-canvas'), mapOptions]);
-}
« no previous file with comments | « src/site/samples/gauge/index.markdown ('k') | src/site/samples/google_maps/example/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698