Skip to content

Commit

Permalink
Fix failing airmass example (#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert authored Dec 20, 2024
1 parent 7ae7725 commit 2ce08c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/airmass/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def location_server(
input: Inputs, output: Outputs, session: Session, *, wrap_long: bool = True
):
map = L.Map(center=(0, 0), zoom=1, scoll_wheel_zoom=True)
with reactive.isolate():
marker = L.Marker(location=(input.lat() or 0, input.long() or 0))
marker = L.Marker(location=(0, 0))

with reactive.isolate(): # Use this to ensure we only execute one time
if input.lat() is None and input.long() is None:
Expand Down

0 comments on commit 2ce08c0

Please sign in to comment.