You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+21-4
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,32 @@
1
1
## v0.17.0
2
+
3
+
Here are some highlights of changes in this version. See the full list of changes for more details: https://github.com/jupyter-widgets/ipyleaflet/compare/0.16.0...0.17.0
4
+
2
5
### New Features
3
6
4
7
* Make it possible to use Choropleth layer with data containing NaNs [#972](https://github.com/jupyter-widgets/ipyleaflet/pull/972)
* Add visible attribute to GeoJSON layer [#1002](https://github.com/jupyter-widgets/ipyleaflet/pull/1002)
8
-
*[BREAKING CHANGE] Remove get and set decorators in LegendControl [#979](https://github.com/jupyter-widgets/ipyleaflet/pull/979)
9
11
10
-
## Maintenance
12
+
### Deprecated API
13
+
14
+
* Deprecate LegendControl properties `name`, `legends`, `positioning`, and `positionning`[#979](https://github.com/jupyter-widgets/ipyleaflet/pull/979) and [#1005](https://github.com/jupyter-widgets/ipyleaflet/pull/1005). Update your code with the following substitutions for a LegendControl `legend`:
15
+
*`legend.name` -> `legend.title`
16
+
*`legend.legends` -> `legend.legend`
17
+
*`legend.positioning` -> `legend.position`
18
+
*`legend.positionnning` -> `legend.position`
19
+
20
+
The `name` argument in creating a LegendControl is also deprecated, please use the `title` argument instead: `LegendControl({}, title='My Title')`.
21
+
* Deprecate layer and control-specific method names for Map and LayerGroup, in favor of methods that work for both layers and controls [#982](https://github.com/jupyter-widgets/ipyleaflet/pull/982). Update your code with the following substitutions for a Map `map` (or LayerGroup):
22
+
*`map.add_control(...)` or `map.add_layer(...)` -> `map.add(...)`
23
+
*`map.remove_control(...)` or `map.remove_layer(...)` -> `map.remove(...)`
24
+
*`map.substitute_control(...)` or `map.substitute_layer(...)` -> `map.substitute(...)`
25
+
*`map.clear_controls(...)` or `map.clear_layers(...)` -> `map.clear(...)`
26
+
27
+
The inline operators still continue to work as before, such as `map += control` or `map -= layer`.
28
+
29
+
### Maintenance
11
30
12
31
* Compute the public path automatically [#988](https://github.com/jupyter-widgets/ipyleaflet/pull/988)
13
32
@@ -16,8 +35,6 @@
16
35
* Document use of multiple basemaps [#971](https://github.com/jupyter-widgets/ipyleaflet/pull/971)
17
36
* Add a small introduction text [#992](https://github.com/jupyter-widgets/ipyleaflet/pull/992)
Copy file name to clipboardexpand all lines: examples/LegendControl.ipynb
+5-5
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@
66
66
"cell_type": "markdown",
67
67
"metadata": {},
68
68
"source": [
69
-
"By default, you need to provide at least a dictionary with pair key=> the label to display and value=> the desired color. By default, it is named 'Legend', but you can pass a name as argument as well."
69
+
"By default, you need to provide at least a dictionary with pair key=> the label to display and value=> the desired color. By default, it is titled 'Legend', but you can pass a title as argument as well."
0 commit comments