Skip to content

Commit e5a2040

Browse files
committed
Use req() to ipyleaflet example to prevent 'flash of error'
1 parent 0d1e4ab commit e5a2040

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/ipyleaflet/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def _():
3636
@render.text
3737
def map_bounds():
3838
b = reactive_read(map, "bounds")
39+
req(b)
3940
lat = [b[0][0], b[0][1]]
4041
lon = [b[1][0], b[1][1]]
4142
return f"The current latitude is {lat} and longitude is {lon}"

0 commit comments

Comments
 (0)