Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Jan 24, 2024
1 parent 8ab8ff0 commit 9b2bfeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/jupyter.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ m.add_marker(Marker(lng_lat=(100.507, 13.745)))
m

# Change radius
widgets.interact(
_ = widgets.interact(
lambda radius: m.set_paint_property(layer_id, "circle-radius", radius),
radius=5
radius=(1, 8, 1)
)

# Change color
widgets.interact(
_ = widgets.interact(
lambda color: m.set_paint_property(layer_id, "circle-color", color),
color=["green", "yellow", "orange", "red"]
)

# Set filter on magnitude
widgets.interact(
_ = widgets.interact(
lambda mag_min: m.set_filter(layer_id, [">=", ["get", "mag"], mag_min]),
mag_min=3
mag_min=(1, 8, 1)
)

# Observe map-on-click event
Expand Down

0 comments on commit 9b2bfeb

Please sign in to comment.