Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # run in Jupyter Notebook or Jupyter Lab
- #
- from arcgis.gis import GIS
- import ipywidgets as widgets
- my_gis = GIS()
- my_map = my_gis.map()
- label = widgets.Label(value="???")
- display(label)
- def test_click(*args):
- print(args)
- print(args[1]['x'], args[1]['y'])
- label.value = "x: {} y: {}".format(args[1]['x'], args[1]['y'])
- my_map.on_click(test_click)
- my_map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement