mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Added the SearchBox class and SearchBoxOptions interface to the places namespace
This commit is contained in:
11
googlemaps/google.maps.d.ts
vendored
11
googlemaps/google.maps.d.ts
vendored
@@ -1422,6 +1422,17 @@ declare module google.maps {
|
||||
DISTANCE,
|
||||
PROMINENCE
|
||||
}
|
||||
|
||||
export class SearchBox {
|
||||
constructor(inputField: HTMLInputElement, opts?: SearchBoxOptions);
|
||||
getBounds(): LatLngBounds;
|
||||
setBounds(bounds: LatLngBounds): void;
|
||||
getPlaces(): PlaceResult[];
|
||||
}
|
||||
|
||||
export interface SearchBoxOptions {
|
||||
bounds: LatLngBounds;
|
||||
}
|
||||
|
||||
export interface TextSearchRequest {
|
||||
bounds: LatLngBounds;
|
||||
|
||||
Reference in New Issue
Block a user