OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library google_maps; | 5 library google_maps; |
6 | 6 |
7 // This code is derived from | 7 // This code is derived from |
8 // https://developers.google.com/maps/documentation/javascript/tutorial#HelloWor
ld | 8 // https://developers.google.com/maps/documentation/javascript/tutorial#HelloWor
ld |
9 // You can view the original JavaScript example at | 9 // You can view the original JavaScript example at |
10 // https://developers.google.com/maps/documentation/javascript/examples/map-simp
le | 10 // https://developers.google.com/maps/documentation/javascript/examples/map-simp
le |
(...skipping 16 matching lines...) Expand all Loading... |
27 // to a collection of JavaScript objects and returns a proxy to it. | 27 // to a collection of JavaScript objects and returns a proxy to it. |
28 var mapOptions = new JsObject.jsify({ | 28 var mapOptions = new JsObject.jsify({ |
29 "center": center, | 29 "center": center, |
30 "zoom": 8, | 30 "zoom": 8, |
31 "mapTypeId": mapTypeId | 31 "mapTypeId": mapTypeId |
32 }); | 32 }); |
33 | 33 |
34 // Nodes are passed though, or transferred, not proxied. | 34 // Nodes are passed though, or transferred, not proxied. |
35 new JsObject(google_maps['Map'], [querySelector('#map-canvas'), mapOptions]); | 35 new JsObject(google_maps['Map'], [querySelector('#map-canvas'), mapOptions]); |
36 } | 36 } |
OLD | NEW |