Skip to content

Commit

Permalink
fixing inverted from/to when coming from url
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybenaim committed Apr 11, 2013
1 parent 2067271 commit 8ebe716
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions public/javascripts/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
var map = new Microsoft.Maps.Map(document.getElementById('mapFrame'), {
credentials: PHD4.mapsKey,
showDashboard: false,
disableBirdseye: true,
enableSearchLogo: false,
showScalebar: false,
enableClickableLogo: false
});

Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/website.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function restoreStateFromUrl() {
toLong = urlState.wp[urlState.wp.length-1];
toLat = urlState.wp[urlState.wp.length-2];
map.setView({ bounds: Microsoft.Maps.LocationRect.fromLocations (new Microsoft.Maps.Location(toLat, toLong), new Microsoft.Maps.Location(fromLat, fromLong))});
createDrivingRoute(toLat, fromLat, toLong, fromLong);
createDrivingRoute(fromLat, toLat, fromLong, toLong);
appActivate(); // Hide the start model screen
}

Expand Down
7 changes: 6 additions & 1 deletion views/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<footer>
Powered by <a href="http://nodejs.org/">Node.js</a> hosted on <a href="http://www.windowsazure.com">Windows Azure</a> with <a href="http://bing.com/maps/">Bing Maps</a></a>
</footer>
<script>var PHD4 = {mapsKey: "<%- settings.mapsKey %>"};</script>
<script>
var PHD4 = {
mapsKey: "<%- settings.mapsKey %>",
currentLocation: <%- location %>
};
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script src="/javascripts/getBestPlacesToVisit.js"></script>
Expand Down

0 comments on commit 8ebe716

Please sign in to comment.