Skip to content

Commit

Permalink
Keep three camelCase methods (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Oct 18, 2023
1 parent 599c506 commit d2024d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions geemap/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,6 @@ def add_layer(
}
super().add(tile_layer)

addLayer = add_layer

def _open_help_page(
self, host_map: MapInterface, selected: bool, item: toolbar.Toolbar.Item
) -> None:
Expand Down Expand Up @@ -862,3 +860,8 @@ def _on_layers_change(self, change) -> None:
del change # Unused.
if self._layer_manager:
self._layer_manager.refresh_layers()

# Keep the following three camelCase methods for backwards compatibility.
addLayer = add_layer
centerObject = center_object
setCenter = set_center

0 comments on commit d2024d1

Please sign in to comment.