From: Tom Hughes Date: Tue, 30 Nov 2010 17:18:16 +0000 (+0000) Subject: Make setPosition reposition Potlatch 2 instead of reloading it X-Git-Tag: live~6250^2~17 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/abc5b2d7b4bf08b29074e7bb152d48b904989443 Make setPosition reposition Potlatch 2 instead of reloading it --- diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index d2358f05e..825654029 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -43,6 +43,6 @@ doSWF(<%= @lat || 'null' %>,<%= @lon || 'null' %>,<%= @zoom %>); function setPosition(lat, lon, zoom) { - doSWF(lat, lon, zoom || 15); + $("potlatch").setPosition(lat, lon, Math.max(zoom || 15, 13)); }