Skip to content

Commit

Permalink
Improved kepler config options #150
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Dec 25, 2021
1 parent 1d9f210 commit 3524dba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions leafmap/kepler.py
Expand Up @@ -44,6 +44,18 @@ def __init__(self, **kwargs):
if "widescreen" not in kwargs:
kwargs["widescreen"] = False

if "pitch" not in kwargs:
kwargs["pitch"] = 0

if "bearing" not in kwargs:
kwargs["bearing"] = 0

if "dragRotate" not in kwargs:
kwargs["dragRotate"] = False

if "isSplit" not in kwargs:
kwargs["isSplit"] = False

if kwargs["widescreen"]:
display(HTML("<style>.container { width:100% !important; }</style>"))

Expand All @@ -54,6 +66,12 @@ def __init__(self, **kwargs):
"latitude": kwargs["center"][0],
"longitude": kwargs["center"][1],
"zoom": kwargs["zoom"],
"bearing": kwargs["bearing"],
"pitch": kwargs["pitch"],
"isSplit": kwargs["isSplit"],
"dragRotate": kwargs["dragRotate"],
"width": kwargs["width"],
"height": kwargs["height"],
}
},
}
Expand Down

0 comments on commit 3524dba

Please sign in to comment.