Improve zoom level selection when invoking Potlatch on an object
authorTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 14:53:24 +0000 (14:53 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 15:06:34 +0000 (15:06 +0000)
commit50fafa14f86a9ff02458c1e055f24c199f14a8eb
treebacc3b1e1edf8b4c1cc8fdf3d341017c042496e5
parent6362f60a54689aec51b2741b4c0da460c7f4fa03
Improve zoom level selection when invoking Potlatch on an object

When invoking Potlatch on a node/way/relation object we should
normally have valid location information in the map parameters, so
use any zoom which is there if possible, otherwise fall back to an
object type specific default value.

Fixes #605.
app/controllers/site_controller.rb
app/views/site/_potlatch.html.erb
app/views/site/_potlatch2.html.erb