File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -497,10 +497,22 @@ class Popup(UILayer):
497
497
auto_close = Bool (True ).tag (sync = True , o = True )
498
498
close_on_escape_key = Bool (True ).tag (sync = True , o = True )
499
499
500
- def open_popup (self , location = def_loc ):
501
- self .send ({'msg' : 'open' , 'location' : location })
500
+ def open_popup (self , location = None ):
501
+ """ Open the popup on the bound map
502
+
503
+ Parameters
504
+ ----------
505
+ location: list, default to the internal location
506
+ The location to open the popup at.
507
+ """
508
+
509
+ if location is not None :
510
+ self .location = location
511
+ self .send ({'msg' : 'open' , 'location' : self .location if location is None else location })
502
512
503
513
def close_popup (self ):
514
+ """ Close the popup on the bound map """
515
+
504
516
self .send ({'msg' : 'close' })
505
517
506
518
class RasterLayer (Layer ):
You can’t perform that action at this time.
0 commit comments