loleaflet/debug/css/mobile.css                        |    6 
 loleaflet/debug/css/screen.css                        |    5 
 loleaflet/debug/document/loleaflet.html               |  161 --------------
 loleaflet/debug/hacks/jitter.html                     |   40 ---
 loleaflet/debug/leaflet-include.js                    |   60 -----
 loleaflet/debug/map/canvas.html                       |   49 ----
 loleaflet/debug/map/controls.html                     |   46 ----
 loleaflet/debug/map/geolocation.html                  |   34 ---
 loleaflet/debug/map/grid.html                         |   48 ----
 loleaflet/debug/map/iframe.html                       |   11 -
 loleaflet/debug/map/image-overlay.html                |   48 ----
 loleaflet/debug/map/layer_remove_add.html             |   45 ----
 loleaflet/debug/map/map-mobile.html                   |   34 ---
 loleaflet/debug/map/map.html                          |   57 -----
 loleaflet/debug/map/markers.html                      |   68 ------
 loleaflet/debug/map/max-bounds.html                   |   38 ---
 loleaflet/debug/map/opacity.html                      |  197 ------------------
 loleaflet/debug/map/scroll.html                       |   41 ---
 loleaflet/debug/map/simple-proj.html                  |   59 -----
 loleaflet/debug/map/wms-marble.html                   |   30 --
 loleaflet/debug/map/wms.html                          |   40 ---
 loleaflet/debug/map/zoom-remain-centered.html         |   44 ----
 loleaflet/debug/map/zoomlevels.html                   |   41 ---
 loleaflet/debug/map/zoompan.html                      |   71 ------
 loleaflet/debug/tests/add_remove_layers.html          |   87 -------
 loleaflet/debug/tests/bringtoback.html                |   37 ---
 loleaflet/debug/tests/canvasloop.html                 |   47 ----
 loleaflet/debug/tests/click_on_canvas.html            |   58 -----
 loleaflet/debug/tests/click_on_canvas_broken.html     |   49 ----
 loleaflet/debug/tests/dragging_and_copyworldjump.html |   61 -----
 loleaflet/debug/tests/opacity.html                    |   56 -----
 loleaflet/debug/tests/popupcontextmenuclicks.html     |   58 -----
 loleaflet/debug/tests/remove_while_dragging.html      |   28 --
 loleaflet/debug/tests/removetilewhilepan.html         |   41 ---
 loleaflet/debug/tests/reuse_popups.html               |   37 ---
 loleaflet/debug/tests/rtl.html                        |   40 ---
 loleaflet/debug/tests/rtl2.html                       |   27 --
 loleaflet/debug/tests/set_icon_reuse_dom.html         |   43 ---
 loleaflet/debug/tests/svg_clicks.html                 |   54 ----
 loleaflet/debug/vector/bounds-extend.html             |   88 --------
 loleaflet/debug/vector/feature-group-bounds.html      |   90 --------
 loleaflet/debug/vector/geojson-sample.js              |   54 ----
 loleaflet/debug/vector/geojson.html                   |  171 ---------------
 loleaflet/debug/vector/rectangle.html                 |   53 ----
 loleaflet/debug/vector/route.js                       |    2 
 loleaflet/debug/vector/touchzoomemu.html              |  194 -----------------
 loleaflet/debug/vector/us-states.js                   |   55 -----
 loleaflet/debug/vector/vector-bounds.html             |   70 ------
 loleaflet/debug/vector/vector-canvas.html             |   93 --------
 loleaflet/debug/vector/vector-mobile.html             |   39 ---
 loleaflet/debug/vector/vector-simple.html             |   44 ----
 loleaflet/debug/vector/vector.html                    |   38 ---
 loleaflet/debug/vector/vector2.html                   |   59 -----
 53 files changed, 3046 deletions(-)

New commits:
commit 6942ee012ee42aa1f91f85f440cbf759a13ea75d
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Fri Oct 25 10:49:42 2019 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Tue Oct 29 16:17:12 2019 +0100

    loleaflet: remove unused loleaflet/debug folder
    
    Long time ago, the leaflet project was imported to be
    reused for document tile rending instead of map tiles.
    During that time they were added so many commit and the
    leaflet source code suffer modifications and mutations like:
    new functions are removed dead code (related to map Geo locations).
    Now if you try to open some of the files, it will not work,
    and to not confuse new contributors, it is preferable to remove all this
    unused files.
    
    But if you still interested in how to use all these files,
    please go to the original repository
    https://github.com/Leaflet/Leaflet.git
    and checkout the branch version 0.8.0-dev, you will be happy how all
    this file works very well.
    
    However, if you want to debug the new changes, I strongly recommend you
    to add
    
    ./configure --enable-debug  /* other parameters */
    
    to debug Collabora Online.
    
    Any objections?
    
    Change-Id: I38c85f5716f608390e79edbffecacb3561fda97a
    Reviewed-on: https://gerrit.libreoffice.org/81508
    Reviewed-by: Henry Castro <hcas...@collabora.com>
    Tested-by: Henry Castro <hcas...@collabora.com>

diff --git a/loleaflet/debug/css/mobile.css b/loleaflet/debug/css/mobile.css
deleted file mode 100644
index c59a527a6..000000000
--- a/loleaflet/debug/css/mobile.css
+++ /dev/null
@@ -1,6 +0,0 @@
-html, body, #map {
-       margin: 0;
-       padding: 0;
-       width: 100%;
-       height: 100%;
-}
\ No newline at end of file
diff --git a/loleaflet/debug/css/screen.css b/loleaflet/debug/css/screen.css
deleted file mode 100644
index ea33d34ca..000000000
--- a/loleaflet/debug/css/screen.css
+++ /dev/null
@@ -1,5 +0,0 @@
-#map {
-       width: 800px; 
-       height: 600px; 
-       border: 1px solid #ccc;
-       }
\ No newline at end of file
diff --git a/loleaflet/debug/document/loleaflet.html 
b/loleaflet/debug/document/loleaflet.html
deleted file mode 100644
index 852b8078b..000000000
--- a/loleaflet/debug/document/loleaflet.html
+++ /dev/null
@@ -1,161 +0,0 @@
-<!DOCTYPE html>
-<!-- saved from 
url=(0054)http://leafletjs.com/examples/quick-start-example.html -->
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>Online Editor</title>
-<meta charset="utf-8">
-
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-<link rel="stylesheet" href="/loleaflet/%VERSION%/leaflet.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/selectionMarkers.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/loleaflet.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/partsPreviewControl.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/sidebar.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/scrollBar.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/searchControl.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/spreadsheet.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/branding.css"> <!-- add your 
logo here -->
-<link rel="stylesheet" 
href="/loleaflet/%VERSION%/plugins/draw-0.2.4/dist/leaflet.draw.css">
-<link rel="stylesheet" 
href="/loleaflet/%VERSION%/scrollbar/jquery.mCustomScrollbar.css">
-<link rel="stylesheet" 
href="/loleaflet/%VERSION%/contextMenu/jquery.contextMenu.css">
-<link rel="stylesheet" href="/loleaflet/%VERSION%/dialog/vex.css" />
-<link rel="stylesheet" href="/loleaflet/%VERSION%/dialog/vex-theme-plain.css" 
/>
-<link rel="stylesheet" 
href="/loleaflet/%VERSION%/dialog/vex-theme-bottom-right-corner.css" />
-<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar/w2ui.min.css" />
-<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar/select2.min.css" />
-<link rel="stylesheet" href="/loleaflet/%VERSION%/smartmenus/sm-core-css.css" 
/>
-<link rel="stylesheet" href="/loleaflet/%VERSION%/smartmenus/sm-simple.css" />
-<link rel="stylesheet" 
href="/loleaflet/%VERSION%/jqueryui/1.11.1/themes/ui-lightness/jquery-ui.css">
-<link rel="localizations" 
href="/loleaflet/%VERSION%/l10n/uno-localizations-override.json" 
type="application/vnd.oftn.l10n+json" />
-<link rel="localizations" href="/loleaflet/%VERSION%/l10n/localizations.json" 
type="application/vnd.oftn.l10n+json"/>
-<link rel="localizations" 
href="/loleaflet/%VERSION%/l10n/locore-localizations.json" 
type="application/vnd.oftn.l10n+json" />
-<link rel="localizations" 
href="/loleaflet/%VERSION%/l10n/help-localizations.json" 
type="application/vnd.oftn.l10n+json"/>
-<link rel="localizations" 
href="/loleaflet/%VERSION%/l10n/uno-localizations.json" 
type="application/vnd.oftn.l10n+json" />
-<style type="text/css"></style></head>
-<body>
-    <script src="/loleaflet/%VERSION%/jquery/2.1.0/jquery.min.js"></script>
-    <script src="/loleaflet/%VERSION%/l10n/json2.min.js"></script>
-    <script src="/loleaflet/%VERSION%/l10n/l10n.min.js"></script>
-    <script>var _ = function (string) {return 
string.toLocaleString();};</script>
-    <script>
-    function getParameterByName(name) {
-        name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
-        var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
-            results = regex.exec(location.search);
-        return results === null ? "" : results[1].replace(/\+/g, " ");
-    }
-    var lang = getParameterByName('lang');
-    if (lang) {
-        String.locale = lang;
-    }
-    </script>
-    <script src="/loleaflet/%VERSION%/toolbar/w2ui.min.js"></script>
-    <script src="/loleaflet/%VERSION%/toolbar/select2.min.js"></script>
-    <script 
src="/loleaflet/%VERSION%/jqueryui/1.11.1/jquery-ui.min.js"></script>
-    <script src="/loleaflet/%VERSION%/leaflet-src.js"></script>
-    <script 
src="/loleaflet/%VERSION%/plugins/draw-0.2.4/dist/leaflet.draw.js"></script>
-    <script 
src="/loleaflet/%VERSION%/scrollbar/jquery.mCustomScrollbar.js"></script>
-    <script 
src="/loleaflet/%VERSION%/contextMenu/jquery.contextMenu.js"></script>
-    <script 
src="/loleaflet/%VERSION%/contextMenu/jquery.ui.position.min.js"></script>
-    <script 
src="/loleaflet/%VERSION%/smartmenus/jquery.smartmenus.js"></script>
-    <script src="/loleaflet/%VERSION%/dialog/vex.combined.min.js"></script>
-    <script src="/loleaflet/%VERSION%/branding.js"></script> <!-- logo onclick 
handler -->
-    <script>vex.defaultOptions.className = 'vex-theme-plain';</script>
-    <script src="/loleaflet/%VERSION%/errormessages.js"></script>
-
-    <!--The "controls" div holds map controls such as the Zoom button and
-        it's separated from the map in order to have the controls on the top
-        of the page all the time.
-
-        The "document-container" div is the actual display of the document, is
-        what the user sees and it should be no larger than the screen size.
-
-        The "map" div is the actual document and it has the document's size
-        and width, this being inside the smaller "document-container" will
-        cause the content to overflow, creating scrollbars -->
-    <div>
-        <div id="toolbar" style="visibility: hidden;"></div>
-        <div id="toolbar-up"></div>
-        <div id="formulabar"></div>
-    </div>
-
-    <div id="document-signing-bar"></div>
-
-    <input id="insertgraphic" type="file" onchange="onInsertFile()" 
style="position: fixed; top: -100em">
-
-    <div id="document-container">
-        <div id="map"></div>
-    </div>
-    <div id="spreadsheet-toolbar"></div>
-    <div id="presentation-toolbar"></div>
-    <div id="toolbar-down"></div>
-
-    <script>
-    var wopiSrc = getParameterByName('WOPISrc');
-    var access_token = '%ACCESS_TOKEN%';
-    var access_header = '%ACCESS_HEADER%';
-    var reuse_cookies = '%REUSE_COOKIES%';
-    if (wopiSrc !== '' && access_token !== '') {
-        wopiSrc += '?access_token=' + access_token;
-    }
-    else if (wopiSrc !== '' && access_header !== '') {
-        wopiSrc += '?access_header=' + access_header;
-    }
-    else if (wopiSrc !== '' && reuse_cookies !== '') {
-        wopiSrc += '?reuse_cookies=' + reuse_cookies;
-    }
-
-    var host = '%HOST%';
-    var filePath = getParameterByName('file_path');
-    var permission = getParameterByName('permission') || 'edit';
-    var timestamp = getParameterByName('timestamp');
-    window.closeButtonEnabled = getParameterByName('closebutton');
-    if (wopiSrc === '' && filePath === '') {
-        vex.dialog.alert(wrongwopisrc);
-    }
-    if (host === '') {
-        vex.dialog.alert(emptyhosturl);
-    }
-
-    var docURL = wopiSrc !== '' ? wopiSrc : filePath;
-
-    document.title = title;
-    var map = L.map('map', {
-                       server: host,
-                       doc: docURL,
-                       permission: permission,
-                       timestamp: timestamp,
-                       documentContainer: 'document-container'
-       });
-
-    ////// Controls /////
-    map.addControl(L.control.scroll());
-    map.addControl(L.control.alertDialog());
-    map.addControl(L.control.mobileWizard());
-    map.addControl(L.control.partsPreview());
-    map.addControl(L.control.sidebar());
-    map.addControl(L.control.tabs());
-    map.addControl(L.control.columnHeader());
-    map.addControl(L.control.rowHeader());
-    map.addControl(L.control.contextMenu());
-    map.addControl(L.control.menubar());
-
-    </script>
-
-    <div id="about-dialog" style="display:none; text-align: center;">
-      <h1 id="product-name">LibreOffice Online</h1>
-      <hr/>
-      <h3 id="product-string"></h3>
-      <p>
-        <h3>LOOLWSD</h3>
-        <div id="loolwsd-version"></div>
-      </p>
-      <p>
-        <h3>LOKit</h3>
-        <div id="lokit-version"></div>
-      </p>
-    </div>
-
-    <script src="/loleaflet/%VERSION%/toolbar/toolbar.js"></script>
-</body></html>
diff --git a/loleaflet/debug/hacks/jitter.html 
b/loleaflet/debug/hacks/jitter.html
deleted file mode 100644
index 77cdcd145..000000000
--- a/loleaflet/debug/hacks/jitter.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width,initial-scale=1 
maximum-scale=1.0 user-scalable=0">
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-       <div >
-               <form method="get">Click in field then scroll map (in up/left 
direction) to see shift of map tiles.
-                       <fieldset><label for="textField">Name</label>:
-                               <input id="textField" name="textField" 
type="text" value="">
-                       </fieldset>
-               </form>
-               Bug tested to occur on: Safari on Mac (Tested in 5.1.7), 
iPad/iPhone 5.1.1., Android 4 Browser. Hack is in L.Browser.chrome and 
TileLayer._addTile
-
-</div>
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-               osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-               osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib});
-
-               //Disable the hack fix
-               L.Browser.chrome = true;
-
-               var map = L.map('map')
-                               .setView([50.5, 30.51], 15)
-                               .addLayer(osm);
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/leaflet-include.js 
b/loleaflet/debug/leaflet-include.js
deleted file mode 100644
index e4e9a7fe5..000000000
--- a/loleaflet/debug/leaflet-include.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- js-indent-level: 8 -*- */
-(function() {
-       function getFiles() {
-               var memo = {},
-                   files = [],
-                   i, src;
-
-               function addFiles(srcs) {
-                       for (var j = 0, len = srcs.length; j < len; j++) {
-                               memo[srcs[j]] = true;
-                       }
-               }
-
-               for (i in deps) {
-                       addFiles(deps[i].src);
-               }
-
-               for (src in memo) {
-                       files.push(src);
-               }
-
-               return files;
-       }
-       var scripts = getFiles();
-
-       function getSrcUrl() {
-               var scripts = document.getElementsByTagName('script');
-               for (var i = 0; i < scripts.length; i++) {
-                       var src = scripts[i].src;
-                       if (src) {
-                               var res = 
src.match(/^(.*)leaflet-include\.js$/);
-                               if (res) {
-                                       return res[1] + '../src/';
-                               }
-                       }
-               }
-       }
-
-       var path = getSrcUrl();
-    for (var i = 0; i < scripts.length; i++) {
-               document.writeln("<script src='" + path + scripts[i] + 
"'></script>");
-       }
-    document.writeln('<script defer>L.Icon.Default.imagePath = "' + path + 
'../dist/images";</script>');
-})();
-
-function getRandomLatLng(map) {
-       var bounds = map.getBounds(),
-               southWest = bounds.getSouthWest(),
-               northEast = bounds.getNorthEast(),
-               lngSpan = northEast.lng - southWest.lng,
-               latSpan = northEast.lat - southWest.lat;
-
-       return new L.LatLng(
-                       southWest.lat + latSpan * Math.random(),
-               southWest.lng + lngSpan * Math.random());
-}
-
-function logEvent(e) {
-       console.log(e.type);
-}
diff --git a/loleaflet/debug/map/canvas.html b/loleaflet/debug/map/canvas.html
deleted file mode 100644
index 823d6a018..000000000
--- a/loleaflet/debug/map/canvas.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map" style="width: 600px; height: 600px; border: 1px solid 
#ccc"></div>
-
-       <script type="text/javascript">
-
-               var tiles = new L.GridLayer();
-
-               tiles.createTile = function(coords) {
-                       var tile = document.createElement('canvas'),
-                           ctx = tile.getContext('2d');
-
-                       tile.width = tile.height = 256;
-
-                       ctx.fillStyle = 'white';
-                       ctx.fillRect(0, 0, 255, 255);
-
-                       ctx.fillStyle = 'black';
-                       ctx.fillText('x: ' + coords.x + ', y: ' + coords.y + ', 
zoom: ' + coords.z, 20, 20);
-
-                       ctx.strokeStyle = 'red';
-                       ctx.beginPath();
-                       ctx.moveTo(0, 0);
-                       ctx.lineTo(255, 0);
-                       ctx.lineTo(255, 255);
-                       ctx.lineTo(0, 255);
-                       ctx.closePath();
-                       ctx.stroke();
-
-                       return tile;
-               }
-
-               var map = new L.Map('map', {center: new L.LatLng(50.5, 30.51), 
zoom: 15, layers: [tiles]});
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/controls.html 
b/loleaflet/debug/map/controls.html
deleted file mode 100644
index e40ef826f..000000000
--- a/loleaflet/debug/map/controls.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}),
-                       osm2 = new L.TileLayer(osmUrl, {attribution: 'Hello 
world'});
-
-               var map = new L.Map('map').addLayer(osm).setView(new 
L.LatLng(50.5, 30.512), 15);
-
-               var marker = new L.Marker(new L.LatLng(50.5, 30.505), {color: 
'red'});
-               map.addLayer(marker);
-               marker.bindPopup("Leaflet is designed with simplicity, 
performance and usability in mind. It works efficiently across all major 
desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 
on modern browsers while still being accessible on older ones.").openPopup();
-
-               var marker2 = new L.Marker(new L.LatLng(50.502, 30.515));
-               map.addLayer(marker2);
-
-               var layersControl = new L.Control.Layers({
-                       'OSM': osm,
-                       'OSM2': osm2
-               }, {
-                       'Some marker': marker,
-                       'Another marker': marker2
-               });
-
-               map.addControl(layersControl);
-               map.addControl(new L.Control.Scale());
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/geolocation.html 
b/loleaflet/debug/map/geolocation.html
deleted file mode 100644
index 49f082ed8..000000000
--- a/loleaflet/debug/map/geolocation.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Leaflet geolocation debug page</title>
-
-    <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-    <link rel="stylesheet" href="../css/screen.css" />
-    <script type="text/javascript" src="../../build/deps.js"></script>
-    <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-    <div id="map"></div>
-
-    <script type="text/javascript">
-
-        var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-            osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-            osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib});
-
-        var map = new L.Map('map', {zoom: 15, layers: [osm]});
-
-        function logEvent(e) { console.log(e.type); }
-        map.on('locationerror', logEvent);
-        map.on('locationfound', logEvent);
-
-        map.locate({setView: true});
-
-    </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/grid.html b/loleaflet/debug/map/grid.html
deleted file mode 100644
index 234fc05ca..000000000
--- a/loleaflet/debug/map/grid.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var grid = L.gridLayer({
-                       attribution: 'Grid Layer'
-               });
-
-               grid.createTile = function (coords, done) {
-                       var tile = document.createElement('div');
-                       tile.innerHTML = [coords.x, coords.y, coords.z].join(', 
');
-                       tile.style.outline = '1px solid red';
-                       tile.style.background = 'white';
-
-                       // test async
-                       setTimeout(function () {
-                               done(null, tile);
-                       }, 500 + Math.random() * 500);
-
-                       return tile;
-               };
-
-               grid.on('loading', function() { console.log('loading'); });
-               grid.on('load', function() { console.log('load'); });
-
-               var map = L.map('map')
-                               .setView([50.5, 30.51], 10)
-                               .addLayer(grid);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/iframe.html b/loleaflet/debug/map/iframe.html
deleted file mode 100644
index b1035aab6..000000000
--- a/loleaflet/debug/map/iframe.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<style>
-       iframe {
-               position: absolute;
-               top: 50px;
-               left: 50px;
-               width: 500px;
-               height: 500px;
-       }
-</style>
-<iframe src="map.html">
-</iframe>
\ No newline at end of file
diff --git a/loleaflet/debug/map/image-overlay.html 
b/loleaflet/debug/map/image-overlay.html
deleted file mode 100644
index cb1360157..000000000
--- a/loleaflet/debug/map/image-overlay.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-       <button id="populate">Populate with 10 markers</button>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib});
-                       latlng = new L.LatLng(50.5, 30.51);
-
-               var map = new L.Map('map');
-               map.addLayer(osm);
-
-               var     bounds = new L.LatLngBounds(
-               new L.LatLng(40.71222,-74.22655),
-               new L.LatLng(40.77394,-74.12544));
-
-               map.fitBounds(bounds);
-
-               var overlay = new 
L.ImageOverlay("https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg";, 
bounds, {
-                       opacity: 0.5,
-                       interactive: true
-               });
-               map.addLayer(overlay);
-
-               overlay.on('dblclick',function (e) {
-                       console.log('Double click on image.');
-               });
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/layer_remove_add.html 
b/loleaflet/debug/map/layer_remove_add.html
deleted file mode 100644
index c7de8900c..000000000
--- a/loleaflet/debug/map/layer_remove_add.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-    <button id="removeAdd">Remove and Add Layer</button>
-
-       <script type="text/javascript">
-        map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 });
-
-        L.Icon.Default.imagePath = 
'http://cdn.leafletjs.com/leaflet-0.7.3/images';
-
-
-        var tileLayer = 
L.tileLayer('http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
-            attribution: "Map: Tiles Courtesy of MapQuest (OpenStreetMap, 
CC-BY-SA)",
-            subdomains: ["otile1", "otile2", "otile3", "otile4"],
-            maxZoom: 12,
-            minZoom: 2
-        });
-        tileLayer.addTo(map);
-
-        L.DomUtil.get('removeAdd').onclick = function() {
-            map.removeLayer(tileLayer);
-
-            setTimeout(function() {
-                map.addLayer(tileLayer);
-            }, 1000);
-
-
-        };
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/map-mobile.html 
b/loleaflet/debug/map/map-mobile.html
deleted file mode 100644
index 12c2cb161..000000000
--- a/loleaflet/debug/map/map-mobile.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/mobile.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}),
-                       latlng = new L.LatLng(50.5, 30.51);
-
-               var map = new L.Map('map', {center: latlng, zoom: 15, layers: 
[osm]});
-
-               var marker = new L.Marker(latlng);
-               map.addLayer(marker);
-
-               marker.bindPopup("<p>Lorem ipsum dolor sit amet, consectetuer 
adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada 
erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, 
pede.</p><p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor 
mauris sit amet orci. Aenean dignissim pellentesque felis.</p>");
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/map.html b/loleaflet/debug/map/map.html
deleted file mode 100644
index 0efec9ac9..000000000
--- a/loleaflet/debug/map/map.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-       <button id="populate">Populate with 10 markers</button>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib});
-
-               var map = L.map('map')
-                               .setView([50.5, 30.51], 15)
-                               .addLayer(osm);
-
-               var markers = new L.FeatureGroup();
-
-               function populate() {
-                       for (var i = 0; i < 10; i++) {
-                               L.marker(getRandomLatLng(map)).addTo(markers);
-                       }
-                       return false;
-               }
-
-               markers.bindPopup("<p>Lorem ipsum dolor sit amet, consectetuer 
adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada 
erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, 
pede.</p><p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor 
mauris sit amet orci. Aenean dignissim pellentesque.</p>").addTo(map);
-
-               populate();
-               L.DomUtil.get('populate').onclick = populate;
-
-               function logEvent(e) { console.log(e.type); }
-
-               // map.on('click', logEvent);
-
-               // map.on('movestart', logEvent);
-               // map.on('move', logEvent);
-               // map.on('moveend', logEvent);
-
-               // map.on('zoomstart', logEvent);
-               // map.on('zoomend', logEvent);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/markers.html b/loleaflet/debug/map/markers.html
deleted file mode 100644
index ae48ac27d..000000000
--- a/loleaflet/debug/map/markers.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-        map = L.map('map', { center: [0, 0], zoom: 3, maxZoom: 4 });
-
-        L.Icon.Default.imagePath = 
'http://cdn.leafletjs.com/leaflet-0.7.3/images';
-
-
-        var markerStatic = new L.Marker([0, -10], {
-            draggable: false,
-            title: 'Static'
-        });
-
-        map.addLayer(markerStatic);
-        markerStatic.bindPopup("Static");
-
-
-        var markerDraggable = new L.Marker([0, 10], {
-            draggable: true,
-            title: 'Draggable'
-        });
-
-        map.addLayer(markerDraggable);
-        markerDraggable.bindPopup("Draggable");
-
-        var poly = new L.Polygon([[0, 10], [0, 15.5], [0, 50], [20, 20.5]]);
-        map.addLayer(poly);
-
-
-        markerDraggable.on('click', function(e) {
-            console.log('markerDraggable click');
-        });
-        markerStatic.on('click', function(e) {
-            console.log('markerStatic click');
-        })
-        map.on('click', function(e) {
-            console.log('map click');
-        });
-
-        poly.on('click', function(e) {
-            console.log('poly click');
-        });
-
-        L.tileLayer('http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
-            attribution: "Map: Tiles Courtesy of MapQuest (OpenStreetMap, 
CC-BY-SA)",
-            subdomains: ["otile1","otile2","otile3","otile4"],
-            maxZoom: 12,
-            minZoom: 2
-        }).addTo(map);
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/max-bounds.html 
b/loleaflet/debug/map/max-bounds.html
deleted file mode 100644
index d1a5a5837..000000000
--- a/loleaflet/debug/map/max-bounds.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/mobile.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}),
-                       bounds = new L.LatLngBounds(new L.LatLng(49.5, -11.3), 
new L.LatLng(61.2, 2.5));
-
-               var map = new L.Map('map', {
-                       center: bounds.getCenter(),
-                       zoom: 7,
-                       layers: [osm],
-                       maxBounds: bounds
-               });
-
-               var latlngs = L.rectangle(bounds).getLatLngs();
-               L.polyline(latlngs.concat([latlngs[0]])).addTo(map);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/opacity.html b/loleaflet/debug/map/opacity.html
deleted file mode 100644
index cffeea57f..000000000
--- a/loleaflet/debug/map/opacity.html
+++ /dev/null
@@ -1,197 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-       <style>
-               .mapcontainer {
-                   float:left;
-                   position: relative;
-                   width: 32%;
-                   font-size: 12px;
-                   font-family: sans-serif;
-                   height: 340px;
-                   margin-bottom: 15px;
-                   background-color: #eee;
-                   margin-right: 1%;
-               }
-
-               .map {
-                   position: absolute;
-                   width: 100%;
-                   height: 280px;
-                   bottom: 0px;
-               }
-       </style>
-</head>
-<body>
-       <p>These should all render identically.</p>
-       <div class="mapcontainer">
-               CASE 1: no opacity set on any layers
-               <br />
-               <div id="map1" class="map"></div>
-       </div>
-       <div class="mapcontainer">
-               CASE 2: opacity set to .99 on overlays but not on basemap
-               <br />
-               <div id="map2" class="map"></div>
-       </div>
-       <div class="mapcontainer">
-               CASE 3: opacity set on overlays but not on basemap, zIndex 
option set to 0 on basemap
-               <br />
-               <div id="map3" class="map"></div>
-       </div>
-       <div class="mapcontainer">
-               CASE 4: opacity set to .99 on overlays but set to 1 on basemap
-               <br />
-               <div id="map4" class="map"></div>
-       </div>
-       <div class="mapcontainer">
-               CASE 5: opacity set to .99 on all layers
-               <br />
-               <div id="map5" class="map"></div>
-       </div>
-       <div class="mapcontainer">
-               CASE 6: opacity set to .99 on 1st and 3rd layers and 1 on 
middle layer
-               <br />
-               <div id="map6" class="map"></div>
-       </div>
-
-       <script type="text/javascript">
-               var mapopts =  {
-                   center: [35, -122],
-                   zoom : 5
-               };
-
-               var map1 = L.map('map1', mapopts);
-               var map2 = L.map('map2', mapopts);
-               var map3 = L.map('map3', mapopts);
-               var map4 = L.map('map4', mapopts);
-               var map5 = L.map('map5', mapopts);
-               var map6 = L.map('map6', mapopts);
-
-               /**********
-               CASE 1: no opacity set on any layers
-               **********/
-               // OSM Basemap
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-
-               var osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
''}).addTo(map1);
-
-               // EEZs / Nations
-               var eez1 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/eezs/{z}/{x}/{y}.png', {
-                   tms: true
-               }).addTo(map1);
-
-               // Marine Protected Areas overlay
-               var mpa1 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/mpas/{z}/{x}/{y}.png', {
-                   tms: false
-               }).addTo(map1);
-
-
-               /**********
-               CASE 2: opacity set on overlays but not on basemap
-               **********/
-               // OSM Basemap
-               var osm2 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
''}).addTo(map2);
-
-               // EEZs / Nations
-               var eez2 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/eezs/{z}/{x}/{y}.png', {
-                   tms: true,
-                   opacity: 0.99
-               }).addTo(map2);
-
-               // Marine Protected Areas overlay
-               var mpa2 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/mpas/{z}/{x}/{y}.png', {
-                   tms: false,
-                   opacity: 0.99
-               }).addTo(map2);
-
-
-               /**********
-               CASE 3: opacity set on overlays but not on basemap, zIndex 
option set to 0 on basemap
-               **********/
-               // OSM Basemap
-               var osm3 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: '', 
zIndex: 0}).addTo(map3);
-
-               // EEZs / Nations
-               var eez3 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/eezs/{z}/{x}/{y}.png', {
-                   tms: true,
-                   opacity: 0.99
-               }).addTo(map3);
-
-               // Marine Protected Areas overlay
-               var mpa3 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/mpas/{z}/{x}/{y}.png', {
-                   tms: false,
-                   opacity: 0.99
-               }).addTo(map3);
-
-
-               /**********
-               CASE 4: opacity set on overlays but set to 1 on basemap
-               **********/
-               // OSM Basemap
-               var osm4 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}).addTo(map4);
-
-               // EEZs / Nations
-               var eez4 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/eezs/{z}/{x}/{y}.png', {
-                   tms: true,
-                   opacity: 0.99
-               }).addTo(map4);
-
-               // Marine Protected Areas overlay
-               var mpa4 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/mpas/{z}/{x}/{y}.png', {
-                   tms: false,
-                   opacity: 0.99
-               }).addTo(map4);
-
-
-               /**********
-               CASE 5: opacity set to .5 on all layers
-               **********/
-               // OSM Basemap
-               var osm5 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: '', 
opacity: 0.99}).addTo(map5);
-
-               // EEZs / Nations
-               var eez5 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/eezs/{z}/{x}/{y}.png', {
-                   tms: true,
-                   opacity: 0.99
-               }).addTo(map5);
-
-               // Marine Protected Areas overlay
-               var mpa5 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/mpas/{z}/{x}/{y}.png', {
-                   tms: false,
-                   opacity: 0.99
-               }).addTo(map5);
-
-
-               /**********
-               CASE 6: opacity set to .5 on 1st and 3rd layers and 1 on middle 
layer
-               **********/
-               // OSM Basemap
-               var osm6 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: '', 
opacity: 0.99}).addTo(map6);
-
-               // EEZs / Nations
-               var eez6 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/eezs/{z}/{x}/{y}.png', {
-                   tms: true,
-                   opacity: 1
-               }).addTo(map6);
-
-               // Marine Protected Areas overlay
-               var mpa6 = new 
L.tileLayer('http://tile1.mpatlas.org/tilecache/mpas/{z}/{x}/{y}.png', {
-                   tms: false,
-                   opacity: 0.99
-               }).addTo(map6);
-
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/scroll.html b/loleaflet/debug/map/scroll.html
deleted file mode 100644
index 75b29959a..000000000
--- a/loleaflet/debug/map/scroll.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div style="position: absolute; top: 100px; left: 100px; border: 1px 
solid green">
-               <div style="position: relative; margin-top: 500px; width: 
800px; border: 1px solid red; margin-left: 200px">
-                       <div style="height: 600px; overflow: auto">
-                               <div id="map" style="width: 600px; height: 
1000px; border: 1px solid #ccc"></div>
-                       </div>
-               </div>
-       </div>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}),
-                       latlng = new L.LatLng(50.5, 30.51);
-
-               var map = new L.Map('map', {center: latlng, zoom: 15, layers: 
[osm]});
-
-               var s = '';
-               for (var i = 0; i < 100; i++) s += 'Test<br>';
-
-               var popup = L.popup({maxHeight: 100})
-                       .setContent(s)
-                       .setLatLng(latlng)
-                       .openOn(map);
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/simple-proj.html 
b/loleaflet/debug/map/simple-proj.html
deleted file mode 100644
index 05f849725..000000000
--- a/loleaflet/debug/map/simple-proj.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var map = L.map('map', {
-                       crs: L.CRS.Simple
-               }).setView([0, 0], 0);
-
-               L.polygon([
-                       [-200, -50],
-                       [-40, 250],
-                       [200, 100]
-               ]).addTo(map);
-
-
-               L.marker([-200, -200]).addTo(map);
-               L.marker([200, -200]).addTo(map);
-               L.marker([200, 200]).addTo(map);
-               L.marker([-200, 200]).addTo(map);
-
-               L.marker([0, 0]).addTo(map);
-
-               L.imageOverlay('http://leafletjs.com/docs/images/logo.png', 
[[0, 0], [73, 220]]).addTo(map);
-
-               var grid = L.gridLayer({
-                       attribution: 'Grid Layer'
-               });
-
-               grid.createTile = function (coords) {
-                       var tile = document.createElement('div');
-                       tile.innerHTML = [coords.x, coords.y, coords.z].join(', 
');
-                       tile.style.outline = '1px solid red';
-                       tile.style.background = 'white';
-                       return tile;
-               };
-
-               map.addLayer(grid);
-
-               L.circle([0, 0], 100, {color: 'red'}).addTo(map);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/wms-marble.html 
b/loleaflet/debug/map/wms-marble.html
deleted file mode 100644
index 72f90122d..000000000
--- a/loleaflet/debug/map/wms-marble.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map" style="width: 1024px; height: 440px; border: 1px solid 
#ccc"></div>
-
-       <script type="text/javascript">
-               var map = new L.Map('map', {crs: L.CRS.EPSG4326});
-
-               var bluemarble = new 
L.TileLayer.WMS("http://maps.opengeo.org/geowebcache/service/wms";, {
-                       layers: 'bluemarble',
-                       attribution: "Data &copy; NASA Blue Marble, image 
service by OpenGeo",
-                       minZoom: 0,
-                       maxZoom: 5
-               });
-
-               map.addLayer(bluemarble).fitWorld();
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/wms.html b/loleaflet/debug/map/wms.html
deleted file mode 100644
index a7faea412..000000000
--- a/loleaflet/debug/map/wms.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map" style="width: 800px; height: 600px; border: 1px solid 
#ccc"></div>
-
-       <script type="text/javascript">
-               var map = new L.Map('map');
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {attribution: osmAttrib}),
-                       osm2 = L.tileLayer(osmUrl, {attribution: osmAttrib});
-
-               var nexrad = new 
L.TileLayer.WMS("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi";, {
-                       layers: 'nexrad-n0r-900913',
-                       format: 'image/png',
-                       transparent: true,
-                       attribution: "Weather data &copy; 2011 IEM Nexrad",
-                       opacity: 0.4
-               });
-
-               var bounds = new L.LatLngBounds(new L.LatLng(32, -126), new 
L.LatLng(50, -64));
-
-               map.addLayer(osm).addLayer(nexrad).fitBounds(bounds);
-
-               L.control.layers({"CM": osm, "CM2": osm2}, {"NexRad": 
nexrad}).addTo(map);
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/zoom-remain-centered.html 
b/loleaflet/debug/map/zoom-remain-centered.html
deleted file mode 100644
index 8023b155e..000000000
--- a/loleaflet/debug/map/zoom-remain-centered.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-           // Check the 'center' setting of the scroll-wheel, double-click and 
touch-zoom
-           // handlers
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {minZoom: 14, attribution: 
osmAttrib}),
-                       latlng = new L.LatLng(51.1788409,-1.82618);
-
-               var map = new L.Map('map', {
-                       center: latlng,
-                       zoom: 15,
-                       layers: [osm],
-                       scrollWheelZoom: 'center', // zoom to center regardless 
where mouse is
-            doubleClickZoom: 'center',
-            touchZoom:       'center'
-               });
-
-               L.marker(latlng).addTo(map);
-
-               L.control.scale().addTo(map);
-
-
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/zoomlevels.html 
b/loleaflet/debug/map/zoomlevels.html
deleted file mode 100644
index fc9ef4d60..000000000
--- a/loleaflet/debug/map/zoomlevels.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-           // Test that changing between layers with differing zoomlevels also 
updates
-        // the zoomlevels in the map + also
-
-               var map = L.map('map').setView(L.latLng(50.5, 30.51), 0);
-
-               var osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = 
L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";, {attribution: 
osmAttrib, minZoom: 0, maxZoom: 10}).addTo(map),
-                       osm2 = 
L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";, {attribution: 
'Hello world', minZoom: 5, maxZoom: 18});
-
-               L.control.layers({
-                       'OSM (5-18)': osm2,
-                       'OSM (0-10)': osm
-               }).addTo(map);
-
-               L.control.scale().addTo(map);
-
-               for (var i = 0; i < 1000; i++) {
-                       L.marker(getRandomLatLng(map)).addTo(map);
-               }
-
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/map/zoompan.html b/loleaflet/debug/map/zoompan.html
deleted file mode 100644
index 3016a1dd2..000000000
--- a/loleaflet/debug/map/zoompan.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-       <style>
-       #map {
-               width: 600px;
-               height: 400px;
-       }
-       </style>
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <div style="position: absolute; left: 530px; top: 10px; z-index: 500">
-               <!-- <button id="london">London</button>
-               <button id="kyiv">Kyiv</button> -->
-               <button id="dc">DC</button>
-               <button id="sf">SF</button>
-               <button id="stop">stop</button>
-       </div>
-
-       <script type="text/javascript">
-
-               var kyiv = [50.5, 30.5],
-                       london = [51.51, -0.12],
-                       sf = [37.77, -122.42],
-                       dc = [38.91, -77.04];
-
-               var map = L.map('map').setView(dc, 10);
-
-               var tiles = 
L.tileLayer('http://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
-                       attribution: '<a 
href="https://www.mapbox.com/about/maps/";>Terms and Feedback</a>',
-                       id: 'examples.map-20v6611k'
-               }).addTo(map);
-
-               var marker1 = L.marker(kyiv).addTo(map),
-                       marker2 = L.marker(london).addTo(map);
-                       // marker3 = L.marker(dc).addTo(map),
-                       // marker4 = L.marker(sf).addTo(map);
-
-               document.getElementById('dc').onclick = function () { 
map.flyTo(dc, 10); };
-               document.getElementById('sf').onclick = function () { 
map.flyTo(sf, 10); };
-               document.getElementById('stop').onclick = function () { 
map.stop(); };
-               // document.getElementById('london').onclick = function () { 
map.flyTo(london); };
-               // document.getElementById('kyiv').onclick = function () { 
map.flyTo(kyiv); };
-
-               function logEvent(e) { console.log(e.type); }
-
-               // map.on('click', logEvent);
-
-               // map.on('movestart', logEvent);
-               // map.on('move', logEvent);
-               // map.on('moveend', logEvent);
-
-               // map.on('zoomstart', logEvent);
-               // map.on('zoomend', logEvent);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/add_remove_layers.html 
b/loleaflet/debug/tests/add_remove_layers.html
deleted file mode 100644
index f89e5f9ea..000000000
--- a/loleaflet/debug/tests/add_remove_layers.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Leaflet debug page</title>
-
-    <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-    <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-    <link rel="stylesheet" href="../css/screen.css" />
-    <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-
-    <script>
-        L_PREFER_CANVAS = true;
-        $(document).ready(function() {
-            var map;
-            var myLayerGroup = new L.LayerGroup();
-
-            initmap();
-
-
-            function initmap() {
-
-                // set up the map
-                map = new L.Map('map');
-
-                // create the tile layer with correct attribution
-                var osmUrl = 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png';
-                var osmAttrib = 'Map data © OpenStreetMap contributors';
-                var osm = new L.TileLayer(osmUrl, { minZoom: 1, maxZoom: 17, 
attribution: osmAttrib, detectRetina: true });
-                map.addLayer(osm);
-                map.fitBounds(new L.LatLngBounds([51,7],[51,7]));
-                drawTestLine();
-
-
-            };
-
-            function drawTestLine() {
-                var lat = 51;
-                var long = 7;
-                for (var i = 0; i < 50; i++) {
-
-                    var myCircle = new L.Circle(new L.LatLng(lat, long),3);
-                    myCircle.on('click',
-                        function (e) {
-                            popup = new L.Popup();
-                            popup.setLatLng(this.getLatLng());
-
-                            var popuptxt = "Hello!";
-                            alert("I am the click function");
-                                    popup.setContent(popuptxt);
-
-                                    map.openPopup(popup);
-
-
-                        });
-                    myLayerGroup.addLayer(myCircle);
-                        lat = lat + 0.0001;
-                        long = long + 0.0001;
-
-                }
-
-            map.addLayer(myLayerGroup);
-
-            };
-
-            $("#b1").click(function() {
-              map.addLayer(myLayerGroup);
-            });
-
-            $("#b2").click(function() {
-              map.removeLayer(myLayerGroup);
-            });
-
-        });
-    </script>
-
-    <script src="../leaflet-include.js"></script>
-</head>
-<body>
-    <div id="map"></div>
-    <div id="buttons">
-        <button type="button" id="b1"> Add Layer</button>
-        <button type="button" id="b2"> Remove Layer</button>
-    </div>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/bringtoback.html 
b/loleaflet/debug/tests/bringtoback.html
deleted file mode 100644
index 1cca85c0f..000000000
--- a/loleaflet/debug/tests/bringtoback.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-       <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-</head>
-<body>
-
-       <div id="map"></div>
-       <button id="foo">Click to add layer, then zoom out or in</button>
-
-       <script type="text/javascript">
-
-       var map = new L.Map('map', { center: new L.LatLng(45.50144, 
-122.67599), zoom: 4 });
-
-       var 
demoUrl='http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer/tile/{z}/{y}/{x}';
-       var demoMap = new L.TileLayer(demoUrl, { maxZoom: 19, attribution: 
'Tiles: &copy; Esri' });
-
-       map.addLayer(demoMap);
-
-       $('#foo').click(function() {
-               var 
topoUrl='http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}';
-       var topoMap = new L.TileLayer(topoUrl, { maxZoom: 19, attribution: 
'Tiles: &copy; Esri' });
-       map.addLayer(topoMap);
-       topoMap.bringToBack();
-       });
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/canvasloop.html 
b/loleaflet/debug/tests/canvasloop.html
deleted file mode 100644
index d8a2ed41d..000000000
--- a/loleaflet/debug/tests/canvasloop.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-    <head>
-    <link rel="stylesheet" href="../../dist/leaflet.css" />
-    <script>
-        L_PREFER_CANVAS = true;
-    </script>
-    <link rel="stylesheet" href="../css/screen.css" />
-
-    <script 
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";></script>
-
-    </head>
-    <body>
-
-        <div id="map"></div>
-
-
-        <script>
-
-        $(document).ready(function() {
-            //Init a map, and attempt a locate.
-            var map = L.map('map', {
-                center: [39.84, -96.591],
-                zoom: 4
-            }).locate();
-
-            L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
-                attribution: '&copy; <a 
href="http://osm.org/copyright";>OpenStreetMap</a> contributors'
-            }).addTo(map);
-
-            var vanillaLayer = new L.LayerGroup();
-            map.addLayer(vanillaLayer);
-
-            map.on('moveend',function(e) {
-                console.log('moveend fired.')
-            });
-
-            //For experiments using setRadius
-            window.marker = 
L.circleMarker(map.getCenter(),{radius:30}).addTo(vanillaLayer);
-        });
-
-        </script>
-        <script type="text/javascript" src="../../build/deps.js"></script>
-
-        <script src="../leaflet-include.js"></script>
-
-    </body>
-</html>
diff --git a/loleaflet/debug/tests/click_on_canvas.html 
b/loleaflet/debug/tests/click_on_canvas.html
deleted file mode 100644
index ac9b21f4e..000000000
--- a/loleaflet/debug/tests/click_on_canvas.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Leaflet debug page</title>
-
-    <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-    <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-    <link rel="stylesheet" href="../css/screen.css" />
-    <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-
-    <script>
-        L_PREFER_CANVAS = true;
-        $(document).ready(function() {
-            var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib});
-
-            var map = L.map('map', {
-                minZoom: 1,
-                maxZoom: 19,
-                center: [51.505, -0.09],
-                zoom: 9,
-                layers: [osm]
-            });
-
-            var polygons = new L.FeatureGroup();
-            var points = [[51.505, -0.01], [51.505, -0.09], [51.55, -0.09]];
-
-            polygons.addLayer(
-            new L.Polyline(
-            points, {
-                weight: 10,
-                opacity: 1,
-                smoothFactor: 1,
-                color: 'red',
-                interactive:true
-            }));
-
-            polygons.on('click', function(m) {
-                // m.layer is the clicked polygon here
-                //m.layer.bindPopup('hello!').openPopup();
-                console.log(m.layer)
-            });
-
-            polygons.addTo(map);
-        });
-    </script>
-
-
-    <script type="text/javascript" src="../../build/deps.js"></script>
-    <script src="../leaflet-include.js"></script>
-</head>
-<body>
-    <div id="map"></div>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/click_on_canvas_broken.html 
b/loleaflet/debug/tests/click_on_canvas_broken.html
deleted file mode 100644
index dbce2bed7..000000000
--- a/loleaflet/debug/tests/click_on_canvas_broken.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Leaflet debug page</title>
-
-    <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-    <link rel="stylesheet" 
href="http://cdn.leafletjs.com/leaflet-0.4.5/leaflet.css"; />
-    <link rel="stylesheet" href="../css/screen.css" />
-    <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-
-    <script>
-        L_PREFER_CANVAS = true;
-        $(document).ready(function() {
-            var map = L.map('map', {
-                minZoom: 1,
-                maxZoom: 19,
-                center: [51.505, -0.09],
-                zoom: 9
-            });
-
-            var polygons = new L.FeatureGroup();
-            var points = [[51.505, -0.01], [51.505, -0.09], [51.55, -0.09]];
-
-            polygons.addLayer(
-            new L.Polyline(
-            points, {
-                weight: 2,
-                opacity: 1,
-                smoothFactor: 1,
-                color: 'red'
-            }));
-
-            polygons.on('click', function(m) {
-                // m.layer is the clicked polygon here
-                //m.layer.bindPopup('hello!').openPopup();
-                console.log(m.layer)
-            });
-
-            polygons.addTo(map);
-        });
-    </script>
-
-    <script src="http://cdn.leafletjs.com/leaflet-0.4.5/leaflet.js";></script>
-</head>
-<body>
-    <div id="map"></div>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/dragging_and_copyworldjump.html 
b/loleaflet/debug/tests/dragging_and_copyworldjump.html
deleted file mode 100644
index 8684f4bad..000000000
--- a/loleaflet/debug/tests/dragging_and_copyworldjump.html
+++ /dev/null
@@ -1,61 +0,0 @@
-
-<!DOCTYPE html>
-<html>
-       <head>
-               <title>Leaflet debug page</title>
-
-               <meta name="viewport" content="width=device-width, 
initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
-
-               <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-               <link rel="stylesheet" href="../css/screen.css" />
-               <script type="text/javascript" 
src="../../build/deps.js"></script>
-               <script src="../leaflet-include.js"></script>
-               <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-       </head>
-       <body>
-               <p>
-                       On the left Map dragging and worldCopyJump are enabled 
during initialisation.<br>
-                       On the right Map worldCopyJump is enabled. Dragging is 
enabled by clicking the button.
-               </p>
-               <button id="foo">
-                       Click to enable dragging on the right map, then 
dragging around and watch copying
-               </button><br>
-               <div id="map1" style="height: 300px;width: 400px; 
float:left;"></div>
-               <div id="map2" style="height: 300px;width: 400px; float:left; 
margin-left: 10px;"></div>
-               <div style="clear:both"></div>
-
-
-               <script type="text/javascript">
-                       function addLayerAndMarker(map) {
-                               var layer = new 
L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
-                                       maxZoom : 18
-                               }).addTo(map);
-
-                               var marker = L.marker([50.5, 30.5]).addTo(map);
-
-                       }
-                       var map1 = new L.Map('map1', {
-                               center : new L.LatLng(45.50144, -122.67599),
-                               zoom : 0,
-                               dragging : true,
-                               worldCopyJump : true
-                       });
-                       var map2 = new L.Map('map2', {
-                               center : new L.LatLng(45.50144, -122.67599),
-                               zoom : 0,
-                               dragging : false,
-                               worldCopyJump : true
-                       });
-                       $("#foo").click(function() {
-              map2.dragging.enable();
-            });
-
-
-
-                       addLayerAndMarker(map1);
-                       addLayerAndMarker(map2);
-
-               </script>
-       </body>
-</html>
diff --git a/loleaflet/debug/tests/opacity.html 
b/loleaflet/debug/tests/opacity.html
deleted file mode 100644
index d3aaaa73c..000000000
--- a/loleaflet/debug/tests/opacity.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/mobile.css" />
-       <style>
-               .mybox {
-                       background-color: red;
-               }
-
-       </style>
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}),
-                       latlng = new L.LatLng(50.5, 30.51);
-
-               var map = new L.Map('map', {center: latlng, zoom: 15, layers: 
[osm]});
-
-               //Create a marker, clicking it toggles opacity
-               var marker = new L.Marker(latlng, { icon: new L.DivIcon({ 
className: 'mybox', iconSize: new L.Point(100,100), html: 'opaque. click to 
toggle' }) });
-               map.addLayer(marker);
-
-               var visible = true;
-               marker.on('click', function () {
-                       if (visible) {
-                               marker.setOpacity(0.3);
-                               marker._icon.innerHTML = 'transparent';
-                       } else {
-                               marker.setOpacity(1);
-                               marker._icon.innerHTML = 'opaque';
-                       }
-                       visible = !visible;
-               });
-
-               var marker2 = new L.Marker(new L.LatLng(50.5, 30.52));
-               map.addLayer(marker2);
-               marker2.bindPopup('This is an amazing message. I shouldn\'t of 
deleted the Ipsum text');
-
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/popupcontextmenuclicks.html 
b/loleaflet/debug/tests/popupcontextmenuclicks.html
deleted file mode 100644
index 914663d80..000000000
--- a/loleaflet/debug/tests/popupcontextmenuclicks.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-       <button id="populate">Populate with 10 markers</button>
-
-       <script type="text/javascript">
-
-var map = L.map('map').setView([36.9, -95.4], 5);
-map.on('contextmenu', function (e) {
-    alert('The map has been right-clicked');
-});
-L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
-    attribution: '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-}).addTo(map);
-
-
-
-var exampleGeoJSON = {
-    type: 'Polygon',
-    coordinates: [
-        [
-            [-90.0, 35.0],
-            [-90.0, 45.0],
-            [-100.0, 45.0],
-            [-100.0, 35.0]
-        ]
-    ]
-};
-
-var geoJsonLayer = L.geoJson(exampleGeoJSON, {
-    onEachFeature: function (feature, layer) {
-        layer.on('contextmenu', function (e) {
-            alert('The GeoJSON layer has been clicked');
-        });
-    }
-}).addTo(map);
-
-var marker = L.marker([36, -95]).addTo(map);
-marker.bindPopup('Right-click me <br> to test contextmenu <br> event 
capture').openPopup();
-
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/remove_while_dragging.html 
b/loleaflet/debug/tests/remove_while_dragging.html
deleted file mode 100644
index fb7fd22bc..000000000
--- a/loleaflet/debug/tests/remove_while_dragging.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map" style="width: 600px; height: 600px; border: 1px solid 
#ccc"></div>
-
-       <script type="text/javascript">
-
-       var map = L.map('map').setView( [50, 50], 10);
-       var marker = L.marker([50, 50], {draggable: true}).addTo(map);
-
-       setTimeout(function() {
-           map.removeLayer(marker);
-       }, 3000);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/removetilewhilepan.html 
b/loleaflet/debug/tests/removetilewhilepan.html
deleted file mode 100644
index 97072c868..000000000
--- a/loleaflet/debug/tests/removetilewhilepan.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-       <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-       var map = new L.Map('map', { center: new L.LatLng(45.50144, 
-122.67599), zoom: 4 });
-
-       var 
demoUrl='http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer/tile/{z}/{y}/{x}';
-       var demoMap = new L.TileLayer(demoUrl, { maxZoom: 19, attribution: 
'Tiles: &copy; Esri' });
-
-       var topoUrl = 
'http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}';
-       var topoMap = new L.TileLayer(topoUrl, { maxZoom: 19, attribution: 
'Tiles: &copy; Esri' });
-       map.addLayer(topoMap);
-
-       map.addLayer(demoMap);
-
-       map.on('dragstart', function () {
-               console.log('dragstart');
-               setTimeout(function () {
-                       console.log('removing');
-                       map.removeLayer(demoMap);
-               }, 400);
-       });
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/reuse_popups.html 
b/loleaflet/debug/tests/reuse_popups.html
deleted file mode 100644
index e06091f02..000000000
--- a/loleaflet/debug/tests/reuse_popups.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-       <div id="map" style="width: 800px; height: 600px; border: 1px solid 
#ccc"></div>
-
-       <script>
-               var map = L.map('map');
-
-               var marker = L.marker([51.5, -0.09])
-                       .bindPopup("<b>Hello world!</b><br />I am a popup.")
-                       .addTo(map);
-                       //.openPopup();
-
-               var marker2 = L.marker([51.525, -0.09])
-                       .addTo(map);
-
-               map.setView([51.505, -0.09], 13);
-
-               var osm = 
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
-                               attribution: '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-               }).addTo(map);
-
-               var a_popup = L.popup().setContent('Previously created')
-
-               marker2.bindPopup(a_popup);
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/rtl.html b/loleaflet/debug/tests/rtl.html
deleted file mode 100644
index f954b03c4..000000000
--- a/loleaflet/debug/tests/rtl.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-       <style>
-       body {
-               direction: rtl;
-       }
-</style>
-</head>
-<body>
-
-       <p>Click the map to place a popup at the mouse location</p>
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-               var osm = 
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
-                       attribution: '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-               });
-
-               var map = L.map('map')
-                               .setView([50.5, 30.51], 15)
-                               .addLayer(osm);
-
-               map.on('click', function(e) {
-                       
L.popup().setLatLng(e.latlng).setContent('Hello').openOn(map);
-               });
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/rtl2.html b/loleaflet/debug/tests/rtl2.html
deleted file mode 100644
index eaa4f635a..000000000
--- a/loleaflet/debug/tests/rtl2.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html dir="rtl">
-<head>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-       <link rel="stylesheet" href="../css/mobile.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-       <style>
-    #map { height: 100%; }
-  </style>
-</head>
-<body>
-<div id="map"></div>
-<script>
-  var map = L.map('map').setView([51.505, -0.09], 13);
-  L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
-map.on('click', function(e) {
-    L.popup().setLatLng(e.latlng).setContent('Hello').openOn(map);
-});
-
-</script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/set_icon_reuse_dom.html 
b/loleaflet/debug/tests/set_icon_reuse_dom.html
deleted file mode 100644
index e8ee1cfb3..000000000
--- a/loleaflet/debug/tests/set_icon_reuse_dom.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<html>
-<head>
-<title>Test for preservation of Icon DOM element</title>
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-       <div id="map" style="width: 600px; height: 600px; border: 1px solid 
#ccc"></div>
-
-       <script type="text/javascript">
-
-       var blueIcon = new L.Icon({iconUrl: 
'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_blue.gif'});
-       var redIcon = new L.Icon({iconUrl: 
'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_red.gif'});
-
-       var map = L.map('map').setView( [50, 50], 10);
-
-       var marker = L.marker([50, 50], {icon: blueIcon, draggable: true});
-
-       marker.on('dragstart', function () {
-               console.log('dragstart');
-               marker.setIcon(redIcon);
-               //This is the previous workaround:
-               //var iconElem = L.DomUtil.get(marker._icon);
-               //iconElem.src = 
'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_red.gif';
-       });
-
-       marker.on('dragend', function () {
-               console.log('dragend');
-               marker.setIcon(blueIcon);
-               //This is the previous workaround:
-               //var iconElem = L.DomUtil.get(marker._icon);
-               //iconElem.src = 
'http://www.webatlas.no/webatlasapi/v/071009/media/interface/default/markers/flag_blue.gif';
-
-       });
-
-       marker.addTo(map);
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/tests/svg_clicks.html 
b/loleaflet/debug/tests/svg_clicks.html
deleted file mode 100644
index 706f34568..000000000
--- a/loleaflet/debug/tests/svg_clicks.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-       <script type='text/javascript' 
src='http://code.jquery.com/jquery-1.8.0.js'></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript">
-
-       var map;
-       var myLayerGroup = new L.LayerGroup();
-
-       initmap();
-
-       function initmap() {
-         // set up the map
-         map = new L.Map('map');
-
-         // create the tile layer with correct attribution
-         var osmUrl = 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png';
-         var osm = new L.TileLayer(osmUrl, { minZoom: 1, maxZoom: 17 });
-         map.addLayer(osm);
-         map.fitBounds(new L.LatLngBounds([51,7],[51,7]));
-
-         var route = L.polyline([
-           [51, 7.000],
-           [51.002, 7.004],
-           [51.004, 7.006]
-         ]).addTo(map).on('click',function(e){console.log('bottom')})
-
-         var route2 = L.polyline([
-           [51, 7.000],
-           [51.002, 7.004]
-         ],
-         { interactive:false,color:'#f00' }
-         ).addTo(map);
-
-         // when the mouse hovers over the red route2, you cannot click 
through the blue route1 beneath
-       };
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/vector/bounds-extend.html 
b/loleaflet/debug/vector/bounds-extend.html
deleted file mode 100644
index db57402cc..000000000
--- a/loleaflet/debug/vector/bounds-extend.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-       <div id="map" style="width: 800px; height: 600px; border: 1px solid 
#ccc"></div>
-    <button onclick="boundsExtendBounds();">Extend the bounds of the center 
rectangle with the upper right rectangle</button>
-    <button onclick="boundsExtendLatLng()">Extend the bounds of the center 
rectangle with the lower left marker</button>
-       <script src="route.js"></script>
-       <script>
-               var osmUrl = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
-                       osm = new L.TileLayer(osmUrl, {maxZoom: 18});
-
-        var latLng = new L.LatLng(54.18815548107151, -7.657470703124999);
-
-               var bounds1 = new L.LatLngBounds(new L.LatLng(54.559322, 
-5.767822), new L.LatLng(56.1210604, -3.021240));
-        var bounds2 = new L.LatLngBounds(new L.LatLng(56.56023925701561, 
-2.076416015625), new L.LatLng(57.01158038001565, -0.9777832031250001));
-        var bounds3;
-
-       var map = new L.Map('map', {
-                   layers: [osm],
-                   center: bounds1.getCenter(),
-                   zoom: 7
-               });
-
-        var rectangle1 = new L.Rectangle(bounds1);
-        var rectangle2 = new L.Rectangle(bounds2);
-        var rectangle3;
-
-        var marker = new L.Marker(latLng);
-
-       map.addLayer(rectangle1).addLayer(rectangle2).addLayer(marker);
-
-
-
-
-
-        function boundsExtendBounds() {
-               if  (rectangle3) {
-                       map.removeLayer(rectangle3);
-                       rectangle3 = null;
-               }
-               if (bounds3) {
-                       bounds3 = null;
-               }
-               bounds3 = new L.LatLngBounds(bounds1.getSouthWest(), 
bounds1.getNorthEast());
-               bounds3.extend(bounds2);
-               rectangle3 = new L.Rectangle(bounds3, {
-                   color: "#ff0000",
-                   weight: 1,
-                   opacity: 1,
-                   fillOpacity: 0
-               });
-
-               map.addLayer(rectangle3);
-        }
-
-        function boundsExtendLatLng() {
-               if  (rectangle3) {
-                       map.removeLayer(rectangle3);
-                       rectangle3 = null;
-               }
-               if (bounds3) {
-                       bounds3 = null;
-               }
-               bounds3 = new L.LatLngBounds(bounds1.getSouthWest(), 
bounds1.getNorthEast());
-               bounds3.extend(marker.getLatLng());
-               rectangle3 = new L.Rectangle(bounds3, {
-                   color: "#ff0000",
-                   weight: 1,
-                   opacity: 1,
-                   fillOpacity: 0
-               });
-
-               map.addLayer(rectangle3);
-        }
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/vector/feature-group-bounds.html 
b/loleaflet/debug/vector/feature-group-bounds.html
deleted file mode 100644
index cb7fc28d1..000000000
--- a/loleaflet/debug/vector/feature-group-bounds.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map" style="width: 600px; height: 600px; border: 1px solid 
#ccc"></div>
-       <button onclick="geojsonLayerBounds();">Show GeoJSON layer 
bounds</button>
-       <button onclick="featureGroupBounds();">Show feature group 
bounds</button>
-
-       <script type="text/javascript" src="geojson-sample.js"></script>
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib}),
-                       rectangle,
-                       featureGroup;
-
-               var map = new L.Map('map', {
-                       center: new L.LatLng(0.78, 102.37),
-                       zoom: 7,
-                       layers: [osm]
-               });
-
-               var geojson = L.geoJson(geojsonSample, {
-
-                       style: function (feature) {
-                               return {color: feature.properties.color};
-                       },
-
-                       onEachFeature: function (feature, layer) {
-                               var popupText = 'geometry type: ' + 
feature.geometry.type;
-
-                               if (feature.properties.color) {
-                                       popupText += '<br/>color: ' + 
feature.properties.color
-                               }
-
-                               layer.bindPopup(popupText);
-                       }
-               });
-
-               geojson.addLayer(new L.Marker(new L.LatLng(2.745530718801952, 
105.194091796875)))
-
-               var eye1 = new L.Marker(new L.LatLng(-0.7250783020332547, 
101.8212890625));
-               var eye2 = new L.Marker(new L.LatLng(-0.7360637370492077, 
103.2275390625));
-               var nose = new L.Marker(new L.LatLng(-1.3292264529974207, 
102.5463867187));
-               var mouth = new L.Polyline([
-                       new L.LatLng(-1.3841426927920029, 101.7333984375),
-                       new L.LatLng(-1.6037944300589726, 101.964111328125),
-                       new L.LatLng(-1.6806671337507222, 102.249755859375),
-                       new L.LatLng(-1.7355743631421197, 102.67822265625),
-                       new L.LatLng(-1.5928123762763, 103.0078125),
-                       new L.LatLng(-1.3292264529974207, 103.3154296875)
-               ]);
-               
map.addLayer(eye1).addLayer(eye2).addLayer(nose).addLayer(mouth);
-               featureGroup = new L.FeatureGroup([eye1, eye2, nose, mouth]);
-
-               map.addLayer(geojson);
-               map.addLayer(featureGroup);
-
-               function geojsonLayerBounds() {
-                       if (rectangle) {
-                               rectangle.setBounds(geojson.getBounds());
-                       } else {
-                               rectangle = new 
L.Rectangle(geojson.getBounds());
-                               map.addLayer(rectangle);
-                       }
-               }
-
-               function featureGroupBounds() {
-                       if (rectangle) {
-                               rectangle.setBounds(featureGroup.getBounds());
-                       } else {
-                               rectangle = new 
L.Rectangle(featureGroup.getBounds());
-                               map.addLayer(rectangle);
-                       }
-
-               }
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/vector/geojson-sample.js 
b/loleaflet/debug/vector/geojson-sample.js
deleted file mode 100644
index d3abe2eba..000000000
--- a/loleaflet/debug/vector/geojson-sample.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- js-indent-level: 8 -*- */
-var geojsonSample = {
-       "type": "FeatureCollection",
-       "features": [
-               {
-                       "type": "Feature",
-                       "geometry": {
-                               "type": "Point",
-                               "coordinates": [102.0, 0.5]
-                       },
-                       "properties": {
-                               "prop0": "value0",
-                               "color": "blue"
-                       }
-               },
-
-               {
-                       "type": "Feature",
-                       "geometry": {
-                               "type": "LineString",
-                               "coordinates": [[102.0, 0.0], [103.0, 1.0], 
[104.0, 0.0], [105.0, 1.0]]
-                       },
-                       "properties": {
-                               "color": "red",
-                               "prop1": 0.0
-                       }
-               },
-
-               {
-                       "type": "Feature",
-                       "geometry": {
-                               "type": "Polygon",
-                               "coordinates": [[[100.0, 0.0], [101.0, 0.0], 
[101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]]
-                       },
-                       "properties": {
-                               "color": "green",
-                               "prop1": {
-                                       "this": "that"
-                               }
-                       }
-               },
-
-               {
-                       "type": "Feature",
-                       "geometry": {
-                               "type": "MultiPolygon",
-                               "coordinates": [[[[100.0, 1.5], [100.5, 1.5], 
[100.5, 2.0], [100.0, 2.0], [100.0, 1.5]]], [[[100.5, 2.0], [100.5, 2.5], 
[101.0, 2.5], [101.0, 2.0], [100.5, 2.0]]]]
-                       },
-                       "properties": {
-                               "color": "purple"
-                       }
-               }
-       ]
-};
diff --git a/loleaflet/debug/vector/geojson.html 
b/loleaflet/debug/vector/geojson.html
deleted file mode 100644
index 6779f8cdb..000000000
--- a/loleaflet/debug/vector/geojson.html
+++ /dev/null
@@ -1,171 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <link rel="stylesheet" href="../css/screen.css" />
-
-       <style>
-               #map {
-                       width: 800px;
-                       height: 500px;
-               }
-
-               .info {
-                       padding: 6px 8px;
-                       font: 14px/16px Arial, Helvetica, sans-serif;
-                       background: white;
-                       background: rgba(255,255,255,0.8);
-                       box-shadow: 0 0 15px rgba(0,0,0,0.2);
-                       border-radius: 5px;
-               }
-               .info h4 {
-                       margin: 0 0 5px;
-                       color: #777;
-               }
-
-               .legend {
-                       text-align: left;
-                       line-height: 18px;
-                       color: #555;
-               }
-               .legend i {
-                       width: 18px;
-                       height: 18px;
-                       float: left;
-                       margin-right: 8px;
-                       opacity: 0.7;
-               }
-       </style>
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map"></div>
-
-       <script type="text/javascript" src="us-states.js"></script>
-       <script type="text/javascript">
-
-               var map = L.map('map').setView([37.8, -96], 4);
-
-               var osm = 
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
-                       attribution: '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-               }).addTo(map);
-
-
-               // control that shows state info on hover
-               var info = L.control();
-
-               info.onAdd = function (map) {
-                       this._div = L.DomUtil.create('div', 'info');
-                       this.update();
-                       return this._div;
-               };
-
-               info.update = function (props) {
-                       this._div.innerHTML = '<h4>US Population Density</h4>' 
+  (props ?
-                               '<b>' + props.name + '</b><br />' + 
props.density + ' people / mi<sup>2</sup>'
-                               : 'Hover over a state');
-               };
-
-               info.addTo(map);
-
-
-               // get color depending on population density value
-               function getColor(d) {
-                       return d > 1000 ? '#800026' :
-                              d > 500  ? '#BD0026' :
-                              d > 200  ? '#E31A1C' :
-                              d > 100  ? '#FC4E2A' :
-                              d > 50   ? '#FD8D3C' :
-                              d > 20   ? '#FEB24C' :
-                              d > 10   ? '#FED976' :
-                                         '#FFEDA0';
-               }
-
-               function style(feature) {
-                       return {
-                               weight: 2,
-                               opacity: 1,
-                               color: 'white',
-                               dashArray: '3',
-                               fillOpacity: 0.7,
-                               fillColor: getColor(feature.properties.density)
-                       };
-               }
-
-               function highlightFeature(e) {
-                       var layer = e.target;
-
-                       layer.setStyle({
-                               weight: 5,
-                               color: '#666',
-                               dashArray: '',
-                               fillOpacity: 0.7
-                       });
-
-                       if (!L.Browser.ie) {
-                               layer.bringToFront();
-                       }
-
-                       info.update(layer.feature.properties);
-               }
-
-               var geojson;
-
-               function resetHighlight(e) {
-                       geojson.resetStyle(e.target);
-                       info.update();
-               }
-
-               function zoomToFeature(e) {
-                       map.fitBounds(e.target.getBounds());
-               }
-
-               function onEachFeature(feature, layer) {
-                       layer.on({
-                               mouseover: highlightFeature,
-                               mouseout: resetHighlight,
-                               click: zoomToFeature
-                       });
-               }
-
-               geojson = L.geoJson(statesData, {
-                       style: style,
-                       onEachFeature: onEachFeature
-               }).addTo(map);
-
-               map.attributionControl.addAttribution('Population data &copy; 
<a href="http://census.gov/";>US Census Bureau</a>');
-
-
-               var legend = L.control({position: 'bottomright'});
-
-               legend.onAdd = function (map) {
-
-                       var div = L.DomUtil.create('div', 'info legend'),
-                               grades = [0, 10, 20, 50, 100, 200, 500, 1000],
-                               labels = [],
-                               from, to;
-
-                       for (var i = 0; i < grades.length; i++) {
-                               from = grades[i];
-                               to = grades[i + 1];
-
-                               labels.push(
-                                       '<i style="background:' + getColor(from 
+ 1) + '"></i> ' +
-                                       from + (to ? '&ndash;' + to : '+'));
-                       }
-
-                       div.innerHTML = labels.join('<br>');
-                       return div;
-               };
-
-               legend.addTo(map);
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/vector/rectangle.html 
b/loleaflet/debug/vector/rectangle.html
deleted file mode 100644
index d1874a130..000000000
--- a/loleaflet/debug/vector/rectangle.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <title>Leaflet debug page</title>
-
-       <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
-
-       <link rel="stylesheet" href="../../dist/leaflet.css" />
-
-       <script type="text/javascript" src="../../build/deps.js"></script>
-       <script src="../leaflet-include.js"></script>
-</head>
-<body>
-
-       <div id="map" style="width: 500px; height: 500px;"></div>
-       <input type="button" value="Set blue rectangle bounds as current map 
extent." onclick="resetBounds();" />
-
-       <script type="text/javascript">
-
-               var osmUrl = 
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-                       osmAttrib = '&copy; <a 
href="http://openstreetmap.org/copyright";>OpenStreetMap</a> contributors',
-                       osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: 
osmAttrib});
-
-               var bounds = new L.LatLngBounds(new L.LatLng(54.559322, 
-5.767822), new L.LatLng(56.1210604, -3.021240));
-               var bounds2 = new L.LatLngBounds(new L.LatLng(56.2124322195806, 
-3.427734375), new L.LatLng(56.307776937156945, -3.2560729980468746));
-
-               var rectangle = new L.Rectangle(bounds);
-               var styledRectangle = new L.Rectangle(bounds2, {
-                       fillColor: "#ff7800",
-                       color: "#000000",
-                       opacity: 1,
-                       weight: 2
-               });
-
-               rectangle.on("click", function () {
-                       alert("you clicked a rectangle.")
-               });
-
-               var map = new L.Map('map', {
-                       center: bounds.getCenter(),
-                       zoom: 7,
-                       layers: [osm]
-               });
-
-               map.addLayer(rectangle).addLayer(styledRectangle);
-
-               function resetBounds() {
-                       rectangle.setBounds(map.getBounds());
-               }
-
-       </script>
-</body>
-</html>
diff --git a/loleaflet/debug/vector/route.js b/loleaflet/debug/vector/route.js
deleted file mode 100644
index b28bb43bc..000000000
--- a/loleaflet/debug/vector/route.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/* -*- js-indent-level: 8 -*- */

... etc. - the rest is truncated
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to