Make sure we always put a valid URL on the edit tab, and allow switching
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.
This commit is contained in:
parent
f7f2b7482d
commit
7b9272ffa6
2 changed files with 5 additions and 5 deletions
|
@ -7,11 +7,11 @@
|
|||
<% 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue