From b8b120ca88e39bc4cf3069794a6605d0c71a3883 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 17 Jun 2016 17:59:16 +0100 Subject: [PATCH 1/1] imagery: just add basic permalink support for now --- cookbooks/imagery/templates/default/imagery.js.erb | 2 +- cookbooks/imagery/templates/default/index.html.erb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@ + + +