Skip to content

Commit

Permalink
Add service account
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jul 18, 2024
1 parent 7c8733b commit 07397d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/02_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import solara

service_account = os.environ.get("EARTHENGINE_SERVICE_ACCOUNT", False)
if isinstance(service_account, str):
service_account = True
geemap.ee_initialize(service_account=service_account)


Expand Down
2 changes: 2 additions & 0 deletions pages/03_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import solara

service_account = os.environ.get("EARTHENGINE_SERVICE_ACCOUNT", False)
if isinstance(service_account, str):
service_account = True
geemap.ee_initialize(service_account=service_account)


Expand Down
2 changes: 2 additions & 0 deletions pages/04_split_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import solara

service_account = os.environ.get("EARTHENGINE_SERVICE_ACCOUNT", False)
if isinstance(service_account, str):
service_account = True
geemap.ee_initialize(service_account=service_account)


Expand Down

0 comments on commit 07397d1

Please sign in to comment.