diff --git a/leafmap/leafmap.py b/leafmap/leafmap.py index 53980a4ffa..17c976f058 100644 --- a/leafmap/leafmap.py +++ b/leafmap/leafmap.py @@ -2718,7 +2718,7 @@ def add_geojson( style_callback_only = False - if len(style) == 0 and style_callback is not None: + if len(style) == 0: style_callback_only = True try: