[openstreetmap/openstreetmap-website] Add a "tile details" view accessed from the context menu (#1472)
Ilya Zverev
notifications at github.com
Tue Mar 7 10:21:58 UTC 2017
Zverik 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),
Yes, by multiplying by a tile size. See [this code](https://github.com/openstreetmap/openstreetmap-website/pull/1450/files#diff-7de9168b78d71bcdf442edf8b8aa44b9R72).
--
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_r104633641
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170307/c3edb3ae/attachment.html>
More information about the rails-dev
mailing list