From e82f360d9caa99a453ccf3adadd6ac44c543d3cc Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 4 Apr 2017 10:24:10 +0200 Subject: [PATCH] Replace permalink/Share URL feature with automatic URL rewriting on change. --- bower.json | 2 - css/style.css | 5 - index.html | 20 ---- js/Map.js | 3 +- js/index.js | 72 +++++++---- js/plugin/NogoAreas.js | 2 +- js/plugin/Permalink.Routing.js | 105 ---------------- js/plugin/leaflet-fullHash.js | 212 +++++++++++++++++++++++++++++++++ js/router/BRouter.js | 57 ++++++--- 9 files changed, 308 insertions(+), 170 deletions(-) delete mode 100644 js/plugin/Permalink.Routing.js create mode 100644 js/plugin/leaflet-fullHash.js diff --git a/bower.json b/bower.json index c661863..b243d15 100644 --- a/bower.json +++ b/bower.json @@ -37,8 +37,6 @@ }, "leaflet-plugins": { "main": [ - "control/Permalink.js", - "control/Permalink.Layer.js", "layer/tile/Bing.js" ] }, diff --git a/css/style.css b/css/style.css index cfa57f8..014f8ca 100644 --- a/css/style.css +++ b/css/style.css @@ -88,11 +88,6 @@ footer { cursor: crosshair; } -/* FIXME permalink temporary hack */ -.leaflet-control-permalink { - display: none; -} - #message { position: absolute; left: 446px; /* 400 + 10 + 26 + 10 */ diff --git a/index.html b/index.html index 441ad79..16f8252 100644 --- a/index.html +++ b/index.html @@ -31,9 +31,6 @@ data CSV - -