From b21f8633122ac5fe8cae3ca1ffc381614f528750 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 13 Mar 2013 17:48:26 -0400 Subject: [PATCH] The one true coordinate order. Fixes #1025 --- js/id/behavior/hash.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/id/behavior/hash.js b/js/id/behavior/hash.js index 62f7e51b2..e017aabed 100644 --- a/js/id/behavior/hash.js +++ b/js/id/behavior/hash.js @@ -8,9 +8,8 @@ iD.behavior.Hash = function(context) { if (args.length < 3 || args.some(isNaN)) { return true; // replace bogus hash } else if (s !== formatter(map).slice(1)) { - map.centerZoom([args[2], - Math.min(lat, Math.max(-lat, args[1]))], - args[0]); + map.centerZoom([args[1], + Math.min(lat, Math.max(-lat, args[2]))], args[0]); } }; @@ -21,8 +20,8 @@ iD.behavior.Hash = function(context) { var q = iD.util.stringQs(location.hash.substring(1)); return '#' + iD.util.qsString(_.assign(q, { map: zoom.toFixed(2) + - '/' + center[1].toFixed(precision) + - '/' + center[0].toFixed(precision) + '/' + center[0].toFixed(precision) + + '/' + center[1].toFixed(precision) }), true); };