[openstreetmap-website] For remote control add info about notes (#957)
Simon Legner
notifications at github.com
Fri Apr 17 23:10:29 UTC 2015
One idea would have been to evaluate the referer header sent. However, it is always `Referer: http://www.openstreetmap.org/` (omitting the content after the hash).
The easiest solution would probably be to add the `layers` information from the hash to the remote control request?
```diff
diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js
index 085b615..419ec73 100644
--- a/app/assets/javascripts/index.js
+++ b/app/assets/javascripts/index.js
@@ -214,6 +214,7 @@ $(document).ready(function () {
"https://127.0.0.1:8112/load_and_zoom?" :
"http://127.0.0.1:8111/load_and_zoom?",
query = {
+ layers: '', // TODO obtain from location.hash
left: bbox.getWest() - 0.0001,
top: bbox.getNorth() + 0.0001,
right: bbox.getEast() + 0.0001,
```
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/957#issuecomment-94093741
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150417/771e7423/attachment.html>
More information about the rails-dev
mailing list