Skip to content

Commit c8c1e9d

Browse files
committed
Merge pull request #5 from PolymerLabs/usecoreloader
Use core-shared-lib
2 parents d06b732 + 865e684 commit c8c1e9d

File tree

2 files changed

+41
-35
lines changed

2 files changed

+41
-35
lines changed

demo.html

+24-19
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
<!DOCTYPE html>
22
<!--
33
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
5-
The complete set of authors may be found at http://polymer.github.io/AUTHORS
6-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
4+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
77
Code distributed by Google as part of the polymer project is also
8-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
8+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
-->
1010
<html>
1111
<head>
1212
<title>Google Map</title>
1313
<script src="../platform/platform.js"></script>
1414
<link rel="import" href="google-map.html">
1515
<link rel="import" href="google-map-directions.html">
16+
<style>
17+
body, html {
18+
height: 100%;
19+
margin: 0;
20+
}
21+
google-map {
22+
display: block;
23+
height: 100%;
24+
}
25+
</style>
1626
</head>
1727
<body>
18-
<polymer-element name="x-map-example" noscript>
19-
<template>
20-
<style>
21-
google-map {
22-
display: block;
23-
height: 600px;
24-
}
25-
</style>
26-
27-
<google-map map="{{map}}"></google-map>
28-
<google-map-directions map="{{map}}" startAddress="San Francisco" endAddress="Mountain View"></google-map-directions>
29-
30-
</template>
31-
</polymer-element>
3228

33-
<x-map-example></x-map-example>
29+
<google-map disableDefaultUI></google-map>
30+
<google-map-directions startAddress="San Francisco" endAddress="Mountain View"></google-map-directions>
31+
32+
<script>
33+
document.addEventListener('polymer-ready', function(e) {
34+
var dir = document.querySelector('google-map-directions');
35+
var gmap = document.querySelector('google-map');
36+
dir.map = gmap.map;
37+
});
38+
</script>
3439
</body>
3540
</html>

google-map.html

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
<!--
22
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
4-
The complete set of authors may be found at http://polymer.github.io/AUTHORS
5-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
3+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
66
Code distributed by Google as part of the polymer project is also
7-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
7+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
88
-->
9+
910
<!--
10-
/**
11-
*
12-
* Google Maps element
13-
*
14-
* @class google-map
15-
* @blurb Element wrapper around Google Maps API.
16-
* @snap http://polymer.github.io/google-map/snap.png
17-
* @author The Polymer Authors
18-
* @categories Charts and Graphs
19-
*
20-
*/
11+
Google Maps element
12+
13+
@blurb Element wrapper around Google Maps API.
14+
@snap http://polymer.github.io/google-map/snap.png
15+
@author The Polymer Authors
16+
@categories Charts and Graphs
17+
18+
@group Polymer Lab Elements
19+
@element google-map
20+
@homepage github.io
2121
-->
2222

23+
<link rel="import" href="../polymer/polymer.html">
2324
<link rel="import" href="../google-apis/google-apis.html">
2425

2526
<polymer-element name="google-map" attributes="latitude longitude zoom showCenterMarker version sensor map mapType disableDefaultUI">
@@ -132,4 +133,4 @@
132133
});
133134

134135
</script>
135-
</polymer-element>
136+
</polymer-element>

0 commit comments

Comments
 (0)