Skip to content

Commit cef82c0

Browse files
authored
update to version 1.0.1, with leaflet 1.7.1 (#30)
1 parent f746bb2 commit cef82c0

File tree

7 files changed

+58
-28
lines changed

7 files changed

+58
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
A Tree Layers Control for Leaflet.
88

99
## Description
10-
This plugin extends [`Control.Layers`](http://leafletjs.com/reference-1.6.0.html#control-layers) allowing a tree structure for the layers layout. In `Control.Layers` you can only display a flat list of layers (baselayers and overlays), that is usually enough for small sets. If you have a long list of baselayers or overlays, and you want to organize them in a tree (allowing the user collapse and expand branches), this is a good option.
10+
This plugin extends [`Control.Layers`](http://leafletjs.com/reference-1.7.1.html#control-layers) allowing a tree structure for the layers layout. In `Control.Layers` you can only display a flat list of layers (baselayers and overlays), that is usually enough for small sets. If you have a long list of baselayers or overlays, and you want to organize them in a tree (allowing the user collapse and expand branches), this is a good option.
1111

1212
[Some live examples here](https://jjimenezshaw.github.io/Leaflet.Control.Layers.Tree/examples/)
1313

1414
## Installation
1515
Using npm for browserify `npm install leaflet.control.layers.tree` (and `require('leaflet.control.layers.tree')`), or just download `L.Control.Layers.Tree.js` and `L.Control.Layers.Tree.css` and add a script and link tag for it in your html.
1616

1717
## Compatibility
18-
This plugin has been tested with Leaflet 1.0.3, 1.1.0, 1.2.0, 1.3.1., 1.4.0, 1.5.1 and 1.6.0
18+
This plugin has been tested with Leaflet 1.0.3, 1.1.0, 1.2.0, 1.3.1., 1.4.0, 1.5.1, 1.6.0 and 1.7.1
1919

2020
## Usage
2121
1. Create your layers. Do this as usual.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leaflet.control.layers.tree",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Control Layers in a Tree structure",
55
"homepage": "https://github.com/jjimenezshaw/Leaflet.Control.Layers.Tree",
66
"authors": [

examples/airports.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Leaflet Layers Tree Demo: Airports in Europe</title>
7-
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" crossorigin=""/>
8-
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet-src.js" crossorigin=""></script>
7+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" crossorigin=""/>
8+
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet-src.js" crossorigin=""></script>
99
<!--link rel="stylesheet" href="../../Leaflet/dist/leaflet.css" crossorigin=""/>
1010
<script src="../../Leaflet/dist/leaflet-src.js" crossorigin=""></script-->
1111

examples/basic.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Leaflet Layers Tree Basic Demo</title>
7-
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" crossorigin=""/>
8-
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet-src.js" crossorigin=""></script>
7+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" crossorigin=""/>
8+
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet-src.js" crossorigin=""></script>
99

1010
<style type="text/css">
1111
html, body { width: 100%; height: 100%; margin: 0; }

examples/options.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Leaflet Layers Tree Demo</title>
7-
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" crossorigin=""/>
8-
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet-src.js" crossorigin=""></script>
7+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" crossorigin=""/>
8+
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet-src.js" crossorigin=""></script>
99

1010
<style type="text/css">
1111
html, body { width: 100%; height: 100%; margin: 0; }

package-lock.json

Lines changed: 47 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leaflet.control.layers.tree",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Control Layers in a Tree structure",
55
"main": "L.Control.Layers.Tree.js",
66
"style": "L.Control.Layers.Tree.css",
@@ -33,7 +33,7 @@
3333
"eslint": "^4.19.1",
3434
"eslint-plugin-html": "^4.0.6",
3535
"happen": "^0.3.2",
36-
"leaflet": "^1.6.0",
36+
"leaflet": "^1.7.1",
3737
"mocha": "^5.2.0",
3838
"mocha-phantomjs-core": "^2.1.2",
3939
"phantomjs-prebuilt": "^2.1.16"

0 commit comments

Comments
 (0)