File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2923,7 +2923,7 @@ export class Map extends Evented {
29232923 getPane ( pane : string | HTMLElement ) : HTMLElement | undefined ;
29242924 getPanes ( ) : { [ name : string ] : HTMLElement } & DefaultMapPanes ;
29252925 getContainer ( ) : HTMLElement ;
2926- whenReady ( fn : ( ) => void , context ?: any ) : this;
2926+ whenReady ( fn : ( event : { target : Map } ) => void , context ?: any ) : this;
29272927
29282928 // Methods for getting map state
29292929 getCenter ( ) : LatLng ;
Original file line number Diff line number Diff line change @@ -615,7 +615,8 @@ map = map
615615 . addHandler ( "Hello World" , L . Handler )
616616 . remove ( )
617617 . whenReady ( ( ) => { } )
618- . whenReady ( ( ) => { } , { } ) ;
618+ . whenReady ( ( ) => { } , { } )
619+ . whenReady ( ( { target : { } } ) => { } , { } ) ;
619620
620621const elementToDrag = document . createElement ( "div" ) ;
621622const draggable = new L . Draggable ( elementToDrag ) ;
You can’t perform that action at this time.
0 commit comments