[openstreetmap/openstreetmap-website] Implemented right-click context menu (#1030)

Tom Hughes notifications at github.com
Sun Feb 12 12:32:52 UTC 2017


A better design here it probably to add the items to the menu after the map is created, and use anonymous functions, like:

```
map.contextmenu.addItem({
  text: 'Label',
  callback: function (e) {
    .....
  }
});
```

-- 
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/1030#issuecomment-279215502
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170212/6e3b2baa/attachment.html>


More information about the rails-dev mailing list