X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1dae8c0d4c86396b0a52c14b819271e05f7217db..24b1168a71e9eea5c3f337ace12a9cfab6949fad:/cookbooks/imagery/templates/default/imagery.js.erb diff --git a/cookbooks/imagery/templates/default/imagery.js.erb b/cookbooks/imagery/templates/default/imagery.js.erb index fa70ed457..dc4182706 100644 --- a/cookbooks/imagery/templates/default/imagery.js.erb +++ b/cookbooks/imagery/templates/default/imagery.js.erb @@ -20,9 +20,9 @@ function createMap(divName) { // Add <%= layer[:name] %> to layer switcher <% if layer[:overlay] -%> - layers.addBaseLayer(<%= layer[:name] %>, <%= layer[:title].to_json %>); - <% else %> layers.addOverlay(<%= layer[:name] %>, <%= layer[:title].to_json %>); + <% else %> + layers.addBaseLayer(<%= layer[:name] %>, <%= layer[:title].to_json %>); <% end -%> <% if layer[:default] -%>