Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymer 3.x branch #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bower_components
node_modules
.idea
51 changes: 0 additions & 51 deletions bower.json

This file was deleted.

14 changes: 9 additions & 5 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>Google Map demo</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../google-map.html">
<link rel="import" href="../google-map-marker.html">
<link rel="import" href="../google-map-poly.html">
<link rel="import" href="../google-map-directions.html">
<script type="module" src="../google-map.js"></script>
<script type="module" src="../google-map-marker.js"></script>
<script type="module" src="../google-map-poly.js"></script>
<script type="module" src="../google-map-directions.js"></script>
<style>
body {
margin: 0;
Expand Down Expand Up @@ -45,7 +45,11 @@

<button id="controlsToggle" onclick="toggleControls()">Toggle controls</button>

<script>
<script type="module">
import '../google-map.js';
import '../google-map-marker.js';
import '../google-map-poly.js';
import '../google-map-directions.js';
var t = document.querySelector('template');
if (location.origin === 'https://user-content-dot-custom-elements.appspot.com') {
t.apiKey = 'AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc'; // TODO: update to your own API Key!
Expand Down
8 changes: 5 additions & 3 deletions demo/kml.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>Google Map Poly demo</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../google-map.html">
<link rel="import" href="../google-map-poly.html">
<script type="module" src="../google-map.js"></script>
<script type="module" src="../google-map-poly.js"></script>
<style>
body {
margin: 0;
Expand All @@ -25,7 +25,9 @@
<google-map latitude="41.876" longitude="-87.624" zoom="11" kml="http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml" api-key="[[apiKey]]"></google-map>
</template>

<script>
<script type="module">
import '../google-map.js';
import '../google-map-poly.js';
if (location.origin === 'https://user-content-dot-custom-elements.appspot.com') {
var t = document.querySelector('template');
t.apiKey = 'AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc'; // TODO: update to your own API Key!
Expand Down
28 changes: 15 additions & 13 deletions demo/polys.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>Google Map Poly demo</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../google-map.html">
<link rel="import" href="../google-map-poly.html">
<script type="module" src="../google-map.js"></script>
<script type="module" src="../google-map-poly.js"></script>
<style>
body {
margin: 0;
Expand Down Expand Up @@ -34,19 +34,21 @@

<button id="toggleEdit" onclick="toggleEdit()">Enable editing</button>

<script>
var poly = document.querySelector('google-map-poly');
var button = document.querySelector('#toggleEdit');
<script type="module">
import '../google-map.js';
import '../google-map-poly.js';
var poly = document.querySelector('google-map-poly');
var button = document.querySelector('#toggleEdit');

function toggleEdit() {
poly.editable = !poly.editable;
button.innerText = poly.editable ? 'Disable editing' : 'Enable editing';
}
function toggleEdit() {
poly.editable = !poly.editable;
button.innerText = poly.editable ? 'Disable editing' : 'Enable editing';
}

if (location.origin === 'https://user-content-dot-custom-elements.appspot.com') {
var t = document.querySelector('template');
t.apiKey = 'AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc'; // TODO: update to your own API Key!
}
if (location.origin === 'https://user-content-dot-custom-elements.appspot.com') {
var t = document.querySelector('template');
t.apiKey = 'AIzaSyD3E1D9b-Z7ekrT3tbhl_dy8DCXuIuDDRc'; // TODO: update to your own API Key!
}
</script>
</body>
</html>
217 changes: 0 additions & 217 deletions google-map-directions.html

This file was deleted.

Loading