Add layer switcher as soon as it is created
authorTom Hughes <tom@compton.nu>
Tue, 14 Feb 2017 20:49:09 +0000 (20:49 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 14 Feb 2017 20:49:09 +0000 (20:49 +0000)
commit040284673ea136066015a89b9f93f888174f6cc8
tree5174873385b928514e35aa80934047ef1a83f001
parent5fc2c9602bf98ec8338ae8f0b441f8e8106de80d
Add layer switcher as soon as it is created

Without this we get an error if we add a layer that is in the
layer switcher to the map before the switcher is added.
cookbooks/imagery/templates/default/imagery.js.erb