Added the SearchBox class and SearchBoxOptions interface to the places namespace

This commit is contained in:
Christopher McGinnis
2013-11-29 15:26:32 -08:00
parent 8c80cc261e
commit 6889109c5e

View File

@@ -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;