Cope with not having a layer configuration at all.
This commit is contained in:
parent
c25a20ff13
commit
2829bf79d0
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ by the OpenStreetMap project and its contributors.
|
|||
<% lon = '-0.1' %>
|
||||
<% lat = '51.5' %>
|
||||
<% zoom = h(params['zoom'] || '5') %>
|
||||
<% layers = h(params['layers']) %>
|
||||
<% end %>
|
||||
<% layers = h(params['layers']) %>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
|
||||
|
@ -109,7 +109,7 @@ by the OpenStreetMap project and its contributors.
|
|||
setMapCenter(centre, zoom);
|
||||
<% end %>
|
||||
|
||||
<% if !layers.empty? %>
|
||||
<% if !layers.nil? and !layers.empty? %>
|
||||
setMapLayers("<%= layers %>");
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue