@@ -39,6 +39,7 @@ namespace OSFramework.Maps.Event.SearchPlaces {
3939 SearchPlaces . SearchPlacesEventType . OnError ,
4040 this . _searchPlaces ,
4141 Enum . ErrorCodes . GEN_UnsupportedEventSearchPlaces ,
42+ undefined ,
4243 `${ eventType } `
4344 ) ;
4445 return ;
@@ -77,8 +78,8 @@ namespace OSFramework.Maps.Event.SearchPlaces {
7778 // eslint-disable-next-line @typescript-eslint/no-unused-vars
7879 searchPlaces ?: OSFramework . Maps . SearchPlaces . ISearchPlaces ,
7980 eventInfo ?: string ,
80- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
81- ...args : any
81+ searchPlacesEventParams ?: Maps . SearchPlaces . ISearchPlacesEventParams ,
82+ ...args : unknown [ ]
8283 ) : void {
8384 // Check if the FileLayer has any events associated
8485 if ( this . handlers . has ( eventType ) ) {
@@ -103,20 +104,20 @@ namespace OSFramework.Maps.Event.SearchPlaces {
103104 break ;
104105 case SearchPlacesEventType . OnPlaceSelect :
105106 handlerEvent . trigger (
106- this . _searchPlaces , // SearchPlaces Object where the place selection occurred.
107- this . _searchPlaces . widgetId ||
108- this . _searchPlaces . uniqueId , // Id of SearchPlaces block that was clicked
109- args [ 0 ] . name , // name of the place selected
110- args [ 0 ] . coordinates , // coordinates of the place selected
111- args [ 0 ] . address // full address of the place selected
107+ searchPlaces , // SearchPlaces Object where the place selection occurred.
108+ searchPlaces . widgetId || searchPlaces . uniqueId , // Id of SearchPlaces block that was clicked
109+ searchPlacesEventParams . name , // name of the place selected
110+ searchPlacesEventParams . coordinates , // coordinates of the place selected
111+ searchPlacesEventParams . address // full address of the place selected
112112 ) ;
113113 break ;
114114 // If the event is not valid we can fall in the default case of the switch and throw an error
115115 default :
116116 this . _searchPlaces . searchPlacesEvents . trigger (
117117 SearchPlaces . SearchPlacesEventType . OnError ,
118- this . _searchPlaces ,
118+ searchPlaces ,
119119 Enum . ErrorCodes . GEN_UnsupportedEventSearchPlaces ,
120+ undefined ,
120121 `${ eventType } `
121122 ) ;
122123 return ;
0 commit comments