From d2024d19318bb4bffdeacfb3923a9b80a92b3d53 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Tue, 17 Oct 2023 21:08:57 -0400 Subject: [PATCH] Keep three camelCase methods (#1777) --- geemap/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/geemap/core.py b/geemap/core.py index 6829800d5f..73a057d4b5 100644 --- a/geemap/core.py +++ b/geemap/core.py @@ -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: @@ -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