From 6889109c5ea8a09a7b31bdb0fd81e140084b3cbd Mon Sep 17 00:00:00 2001 From: Christopher McGinnis Date: Fri, 29 Nov 2013 15:26:32 -0800 Subject: [PATCH] Added the SearchBox class and SearchBoxOptions interface to the places namespace --- googlemaps/google.maps.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/googlemaps/google.maps.d.ts b/googlemaps/google.maps.d.ts index 1bd9c491f3..3be446e19d 100644 --- a/googlemaps/google.maps.d.ts +++ b/googlemaps/google.maps.d.ts @@ -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;