diff --git a/shiny/Shuttle-v2/index.html b/shiny/Shuttle-v2/index.html index cb94888..c518946 100644 --- a/shiny/Shuttle-v2/index.html +++ b/shiny/Shuttle-v2/index.html @@ -1,4 +1,11 @@ - + + Shuttle diff --git a/shiny/Shuttle-v2/mock_schedule.js b/shiny/Shuttle-v2/mock_schedule.js index de9c353..bfb59f3 100644 --- a/shiny/Shuttle-v2/mock_schedule.js +++ b/shiny/Shuttle-v2/mock_schedule.js @@ -1,3 +1,9 @@ +/* + * Copyright 2013 The Polymer Authors. All rights reserved. + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ + (function() { if (!window.Shuttle || Polymer.flags.mock) { diff --git a/shiny/Shuttle-v2/shuttle-app.html b/shiny/Shuttle-v2/shuttle-app.html index 565d1db..c97edcf 100644 --- a/shiny/Shuttle-v2/shuttle-app.html +++ b/shiny/Shuttle-v2/shuttle-app.html @@ -1,3 +1,11 @@ + + @@ -119,9 +127,7 @@ }.bind(this)); }, enteredView: function() { - setTimeout(function() { - this.$.map.resize(); - }.bind(this)); + this.$.map.resize(); }, tabSelectedChanged: function(old) { this.classFollows(this.$[this.tabSelected], this.$[old], diff --git a/shiny/Shuttle-v2/shuttle-data.html b/shiny/Shuttle-v2/shuttle-data.html index 45c453a..9fac7ab 100644 --- a/shiny/Shuttle-v2/shuttle-data.html +++ b/shiny/Shuttle-v2/shuttle-data.html @@ -1,3 +1,11 @@ + + diff --git a/shiny/Shuttle-v2/shuttle-favorites.html b/shiny/Shuttle-v2/shuttle-favorites.html index 4cbb061..6bfed37 100644 --- a/shiny/Shuttle-v2/shuttle-favorites.html +++ b/shiny/Shuttle-v2/shuttle-favorites.html @@ -1,3 +1,11 @@ + + diff --git a/shiny/Shuttle-v2/shuttle-map.html b/shiny/Shuttle-v2/shuttle-map.html index 0f51a3a..c20f586 100644 --- a/shiny/Shuttle-v2/shuttle-map.html +++ b/shiny/Shuttle-v2/shuttle-map.html @@ -1,3 +1,11 @@ + + @@ -24,7 +32,9 @@ this.resizeJob = this.job(this.resizeJob, this._resize, 100); }, _resize: function() { - this.$.map.resize(); + requestAnimationFrame(function() { + this.$.map.resize(); + }.bind(this)); }, centerStopChanged: function() { if (this.centerStop) { diff --git a/shiny/Shuttle-v2/shuttle-schedule.html b/shiny/Shuttle-v2/shuttle-schedule.html index a4253b6..23f63da 100644 --- a/shiny/Shuttle-v2/shuttle-schedule.html +++ b/shiny/Shuttle-v2/shuttle-schedule.html @@ -1,3 +1,11 @@ + + diff --git a/shiny/Shuttle-v2/shuttle-stop-picker.html b/shiny/Shuttle-v2/shuttle-stop-picker.html index ce96485..8f2af93 100644 --- a/shiny/Shuttle-v2/shuttle-stop-picker.html +++ b/shiny/Shuttle-v2/shuttle-stop-picker.html @@ -1,3 +1,11 @@ + + diff --git a/shiny/Shuttle-v2/shuttle-timetable.html b/shiny/Shuttle-v2/shuttle-timetable.html index cf0f54f..6f9477e 100644 --- a/shiny/Shuttle-v2/shuttle-timetable.html +++ b/shiny/Shuttle-v2/shuttle-timetable.html @@ -1,3 +1,11 @@ + +