From: Grant Slater Date: Fri, 17 Jun 2016 16:59:16 +0000 (+0100) Subject: imagery: just add basic permalink support for now X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b8b120ca88e39bc4cf3069794a6605d0c71a3883?ds=sidebyside imagery: just add basic permalink support for now --- diff --git a/cookbooks/imagery/templates/default/imagery.js.erb b/cookbooks/imagery/templates/default/imagery.js.erb index a728ef60e..f992ef08d 100644 --- a/cookbooks/imagery/templates/default/imagery.js.erb +++ b/cookbooks/imagery/templates/default/imagery.js.erb @@ -33,6 +33,6 @@ function createMap(divName) { // Add the layer switch to the mao layers.addTo(map); - + map.addControl(new L.Control.Permalink()); return map; } diff --git a/cookbooks/imagery/templates/default/index.html.erb b/cookbooks/imagery/templates/default/index.html.erb index 74b7d53d0..a53b27fad 100644 --- a/cookbooks/imagery/templates/default/index.html.erb +++ b/cookbooks/imagery/templates/default/index.html.erb @@ -9,6 +9,9 @@ + + +