to the editor to work from z11 instead of z14 as that is what Potlatch
supports.
Also fix default zooms for Potlatch when no position is given.
<% elsif @user and params['lon'].nil? and params['lat'].nil? %>
<% lon = @user.home_lon %>
<% lat = @user.home_lat %>
-<% zoom = '10' %>
+<% zoom = '12' %>
<%else%>
<% lon = params['lon'] || '-0.1' %>
<% lat = params['lat'] || '51.5' %>
-<% zoom = params['zoom'] || '4' %>
+<% zoom = params['zoom'] || '12' %>
<% end %>
<div id="mapcontent">You need a Flash player to use Potlatch, the
node = document.getElementById("editanchor");
if (node) {
- if ( zoom >= 14) {
- var args = getArgs(node.href);
+ if (zoom >= 11) {
+ var args = new Object();
args.lat = lat;
args.lon = lon;
args.zoom = zoom;
- node.href = setArgs(node.href, args);
+ node.href = setArgs("/edit.html", args);
node.style.fontStyle = 'normal';
} else {
node.href = 'javascript:alert("zoom in to edit map");';