[openstreetmap/openstreetmap-website] Add a "tile details" view accessed from the context menu (#1472)

Tom Hughes notifications at github.com
Tue Mar 7 10:05:43 UTC 2017


tomhughes commented on this pull request.



> +  }
+
+  var page = {};
+
+  page.pushstate = page.popstate = function(path) {
+    OSM.loadSidebarContent(path, function () {
+      page.load(path, true);
+    });
+  };
+
+  page.load = function(path, noCentre) {
+    var params = querystring.parse(path.substring(path.indexOf('?') + 1)),
+        lat = parseFloat(params.lat),
+        lon = parseFloat(params.lon),
+        zoom = parseInt(params.zoom),
+        y = lat2y(lat, zoom),

Well as I read it that would give me coordinates in meters on the projected sheet, and I would still need to convert those to tile numbers?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1472#discussion_r104630261
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170307/28a12416/attachment-0001.html>


More information about the rails-dev mailing list