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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ Here are some highlights of changes in this version. See the full list of change
11
11
12
12
### Breaking Changes
13
13
14
-
*Remove `name`, `legends`, `positioning`, and `positionning`properties in LegendControl [#979](https://github.com/jupyter-widgets/ipyleaflet/pull/979). Update your code with the following substitutions for a LegendControl `legend`:
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
15
*`legend.name` -> `legend.title`
16
16
*`legend.legends` -> `legend.legend`
17
17
*`legend.positioning` -> `legend.position`
18
18
*`legend.positionnning` -> `legend.position`
19
19
20
-
The recommended way to create a LegendControl with a given title is to use the `title`parameter: `LegendControl({}, title='My Title')`. There is a backwards compatibility shim in place, so giving the title as `name` in the constructor still works, but is not recommended: `LegendControl({}, name='My Title')`
20
+
The `name` argument in creating a LegendControl is also deprecated, please use the `title`argument instead: `LegendControl({}, title='My Title')`.
21
21
* Deprecate layer and control-specific methods for maps, 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`:
22
22
*`map.add_control(...)` or `map.add_layer(...)` -> `map.add(...)`
23
23
*`map.remove_control(...)` or `map.remove_layer(...)` -> `map.remove(...)`
0 commit comments