• Version 3.43.3
  • Published
  • 232 kB
  • No dependencies
  • MIT license


npm i @types/googlemaps
yarn add @types/googlemaps
pnpm add @types/googlemaps


TypeScript definitions for Google Maps JavaScript API



namespace google.maps

namespace google.maps {}

    namespace google.maps.maps

    namespace google.maps.maps {}

      variable version

      const version: string;
      • Version of the Google Maps JavaScript API that the browser has loaded. Like '3.38.11'.

        See Also

      class FusionTablesLayer

      class FusionTablesLayer extends MVCObject {}


        constructor(options: FusionTablesLayerOptions);

          method getMap

          getMap: () => Map;

            method setMap

            setMap: (map: Map | null) => void;

              method setOptions

              setOptions: (options: FusionTablesLayerOptions) => void;

                class SaveWidget

                class SaveWidget {}


                  constructor(container: Node, opts?: SaveWidgetOptions);

                    method getAttribution

                    getAttribution: () => Attribution;

                      method getPlace

                      getPlace: () => Place;

                        method setAttribution

                        setAttribution: (attribution: Attribution) => void;

                          method setOptions

                          setOptions: (opts: SaveWidgetOptions) => void;

                            method setPlace

                            setPlace: (place: Place) => void;

                              interface Attribution

                              interface Attribution {}

                                property iosDeepLinkId

                                iosDeepLinkId?: string;

                                  property source

                                  source?: string;

                                    property webUrl

                                    webUrl?: string;

                                      interface FusionTablesCell

                                      interface FusionTablesCell {}

                                        property columnName

                                        columnName?: string;

                                          property value

                                          value?: string;

                                            interface FusionTablesHeatmap

                                            interface FusionTablesHeatmap {}

                                              property enabled

                                              enabled: boolean;

                                                interface FusionTablesLayerOptions

                                                interface FusionTablesLayerOptions {}

                                                  property clickable

                                                  clickable?: boolean;

                                                    property heatmap

                                                    heatmap?: FusionTablesHeatmap;

                                                      property map

                                                      map?: Map;

                                                        property query

                                                        query?: FusionTablesQuery;

                                                          property styles

                                                          styles?: FusionTablesStyle[];

                                                            property suppressInfoWindows

                                                            suppressInfoWindows?: boolean;

                                                              interface FusionTablesMarkerOptions

                                                              interface FusionTablesMarkerOptions {}

                                                                property iconName

                                                                iconName: string;

                                                                  interface FusionTablesMouseEvent

                                                                  interface FusionTablesMouseEvent {}

                                                                    property infoWindowHtml

                                                                    infoWindowHtml?: string;

                                                                      property latLng

                                                                      latLng?: LatLng;

                                                                        property pixelOffset

                                                                        pixelOffset?: Size;

                                                                          property row

                                                                          row?: object;

                                                                            interface FusionTablesPolygonOptions

                                                                            interface FusionTablesPolygonOptions {}

                                                                              property fillColor

                                                                              fillColor?: string;

                                                                                property fillOpacity

                                                                                fillOpacity?: number;

                                                                                  property strokeColor

                                                                                  strokeColor?: string;

                                                                                    property strokeOpacity

                                                                                    strokeOpacity?: number;

                                                                                      property strokeWeight

                                                                                      strokeWeight?: number;

                                                                                        interface FusionTablesPolylineOptions

                                                                                        interface FusionTablesPolylineOptions {}

                                                                                          property strokeColor

                                                                                          strokeColor?: string;

                                                                                            property strokeOpacity

                                                                                            strokeOpacity?: number;

                                                                                              property strokeWeight

                                                                                              strokeWeight?: number;

                                                                                                interface FusionTablesQuery

                                                                                                interface FusionTablesQuery {}

                                                                                                  property from

                                                                                                  from?: string;

                                                                                                    property limit

                                                                                                    limit?: number;

                                                                                                      property offset

                                                                                                      offset?: number;

                                                                                                        property orderBy

                                                                                                        orderBy?: string;

                                                                                                          property select

                                                                                                          select?: string;

                                                                                                            property where

                                                                                                            where?: string;

                                                                                                              interface FusionTablesStyle

                                                                                                              interface FusionTablesStyle {}

                                                                                                                property markerOptions

                                                                                                                markerOptions?: FusionTablesMarkerOptions;

                                                                                                                  property polygonOptions

                                                                                                                  polygonOptions?: FusionTablesPolygonOptions;

                                                                                                                    property polylineOptions

                                                                                                                    polylineOptions?: FusionTablesPolylineOptions;

                                                                                                                      property where

                                                                                                                      where?: string;

                                                                                                                        interface SaveWidgetOptions

                                                                                                                        interface SaveWidgetOptions {}

                                                                                                                          property attribution

                                                                                                                          attribution?: Attribution;

                                                                                                                            property place

                                                                                                                            place?: Place;

                                                                                                                              namespace google.maps.maps.adsense

                                                                                                                              namespace google.maps.maps.adsense {}

                                                                                                                                class AdUnit

                                                                                                                                class AdUnit extends MVCObject {}


                                                                                                                                  constructor(container: Element, opts: AdUnitOptions);

                                                                                                                                    method getBackgroundColor

                                                                                                                                    getBackgroundColor: () => string;

                                                                                                                                      method getBorderColor

                                                                                                                                      getBorderColor: () => string;

                                                                                                                                        method getChannelNumber

                                                                                                                                        getChannelNumber: () => string;

                                                                                                                                          method getContainer

                                                                                                                                          getContainer: () => Element;

                                                                                                                                            method getFormat

                                                                                                                                            getFormat: () => AdFormat;

                                                                                                                                              method getMap

                                                                                                                                              getMap: () => Map;

                                                                                                                                                method getPosition

                                                                                                                                                getPosition: () => ControlPosition;

                                                                                                                                                  method getPublisherId

                                                                                                                                                  getPublisherId: () => string;

                                                                                                                                                    method getTextColor

                                                                                                                                                    getTextColor: () => string;

                                                                                                                                                      method getTitleColor

                                                                                                                                                      getTitleColor: () => string;

                                                                                                                                                        method getUrlColor

                                                                                                                                                        getUrlColor: () => string;

                                                                                                                                                          method setBackgroundColor

                                                                                                                                                          setBackgroundColor: (backgroundColor: string) => void;

                                                                                                                                                            method setBorderColor

                                                                                                                                                            setBorderColor: (borderColor: string) => void;

                                                                                                                                                              method setChannelNumber

                                                                                                                                                              setChannelNumber: (channelNumber: string) => void;

                                                                                                                                                                method setFormat

                                                                                                                                                                setFormat: (format: AdFormat) => void;

                                                                                                                                                                  method setMap

                                                                                                                                                                  setMap: (map: Map | null) => void;

                                                                                                                                                                    method setPosition

                                                                                                                                                                    setPosition: (position: ControlPosition) => void;

                                                                                                                                                                      method setTextColor

                                                                                                                                                                      setTextColor: (textColor: string) => void;

                                                                                                                                                                        method setTitleColor

                                                                                                                                                                        setTitleColor: (titleColor: string) => void;

                                                                                                                                                                          method setUrlColor

                                                                                                                                                                          setUrlColor: (urlColor: string) => void;

                                                                                                                                                                            interface AdUnitOptions

                                                                                                                                                                            interface AdUnitOptions {}

                                                                                                                                                                              property backgroundColor

                                                                                                                                                                              backgroundColor?: string;

                                                                                                                                                                                property borderColor

                                                                                                                                                                                borderColor?: string;

                                                                                                                                                                                  property channelNumber

                                                                                                                                                                                  channelNumber?: string;

                                                                                                                                                                                    property format

                                                                                                                                                                                    format?: AdFormat;

                                                                                                                                                                                      property map

                                                                                                                                                                                      map?: Map;

                                                                                                                                                                                        property position

                                                                                                                                                                                        position?: ControlPosition;

                                                                                                                                                                                          property publisherId

                                                                                                                                                                                          publisherId?: string;

                                                                                                                                                                                            property textColor

                                                                                                                                                                                            textColor?: string;

                                                                                                                                                                                              property titleColor

                                                                                                                                                                                              titleColor?: string;

                                                                                                                                                                                                property urlColor

                                                                                                                                                                                                urlColor?: string;

                                                                                                                                                                                                  enum AdFormat

                                                                                                                                                                                                  enum AdFormat {
                                                                                                                                                                                                  BANNER = '468x60_as',
                                                                                                                                                                                                  BUTTON = '125x125_as',
                                                                                                                                                                                                  HALF_BANNER = '234x60_as',
                                                                                                                                                                                                  LARGE_HORIZONTAL_LINK_UNIT = '728x15_0ads_al',
                                                                                                                                                                                                  LARGE_RECTANGLE = '336x280_as',
                                                                                                                                                                                                  LARGE_VERTICAL_LINK_UNIT = '180x90_0ads_al',
                                                                                                                                                                                                  LEADERBOARD = '728x90_as',
                                                                                                                                                                                                  MEDIUM_RECTANGLE = '300x250_as',
                                                                                                                                                                                                  MEDIUM_VERTICAL_LINK_UNIT = '160x90_0ads_al',
                                                                                                                                                                                                  SKYSCRAPER = '120x600_as',
                                                                                                                                                                                                  SMALL_HORIZONTAL_LINK_UNIT = '468x15_0ads_al',
                                                                                                                                                                                                  SMALL_RECTANGLE = '180x150_as',
                                                                                                                                                                                                  SMALL_SQUARE = '200x200_as',
                                                                                                                                                                                                  SMALL_VERTICAL_LINK_UNIT = '120x90_0ads_al',
                                                                                                                                                                                                  SQUARE = '250x250_as',
                                                                                                                                                                                                  VERTICAL_BANNER = '120x240_as',
                                                                                                                                                                                                  WIDE_SKYSCRAPER = '160x600_as',
                                                                                                                                                                                                  X_LARGE_VERTICAL_LINK_UNIT = '200x90_0ads_al',

                                                                                                                                                                                                    member BANNER

                                                                                                                                                                                                    BANNER = '468x60_as'

                                                                                                                                                                                                      member BUTTON

                                                                                                                                                                                                      BUTTON = '125x125_as'

                                                                                                                                                                                                        member HALF_BANNER

                                                                                                                                                                                                        HALF_BANNER = '234x60_as'
                                                                                                                                                                                                          LARGE_HORIZONTAL_LINK_UNIT = '728x15_0ads_al'

                                                                                                                                                                                                            member LARGE_RECTANGLE

                                                                                                                                                                                                            LARGE_RECTANGLE = '336x280_as'
                                                                                                                                                                                                              LARGE_VERTICAL_LINK_UNIT = '180x90_0ads_al'

                                                                                                                                                                                                                member LEADERBOARD

                                                                                                                                                                                                                LEADERBOARD = '728x90_as'

                                                                                                                                                                                                                  member MEDIUM_RECTANGLE

                                                                                                                                                                                                                  MEDIUM_RECTANGLE = '300x250_as'
                                                                                                                                                                                                                    MEDIUM_VERTICAL_LINK_UNIT = '160x90_0ads_al'

                                                                                                                                                                                                                      member SKYSCRAPER

                                                                                                                                                                                                                      SKYSCRAPER = '120x600_as'
                                                                                                                                                                                                                        SMALL_HORIZONTAL_LINK_UNIT = '468x15_0ads_al'

                                                                                                                                                                                                                          member SMALL_RECTANGLE

                                                                                                                                                                                                                          SMALL_RECTANGLE = '180x150_as'

                                                                                                                                                                                                                            member SMALL_SQUARE

                                                                                                                                                                                                                            SMALL_SQUARE = '200x200_as'
                                                                                                                                                                                                                              SMALL_VERTICAL_LINK_UNIT = '120x90_0ads_al'

                                                                                                                                                                                                                                member SQUARE

                                                                                                                                                                                                                                SQUARE = '250x250_as'

                                                                                                                                                                                                                                  member VERTICAL_BANNER

                                                                                                                                                                                                                                  VERTICAL_BANNER = '120x240_as'

                                                                                                                                                                                                                                    member WIDE_SKYSCRAPER

                                                                                                                                                                                                                                    WIDE_SKYSCRAPER = '160x600_as'
                                                                                                                                                                                                                                      X_LARGE_VERTICAL_LINK_UNIT = '200x90_0ads_al'

                                                                                                                                                                                                                                        namespace google.maps.maps.visualization

                                                                                                                                                                                                                                        namespace google.maps.maps.visualization {}

                                                                                                                                                                                                                                          class MapsEngineLayer

                                                                                                                                                                                                                                          class MapsEngineLayer extends MVCObject {}


                                                                                                                                                                                                                                            constructor(options: MapsEngineLayerOptions);

                                                                                                                                                                                                                                              method getLayerId

                                                                                                                                                                                                                                              getLayerId: () => string;

                                                                                                                                                                                                                                                method getLayerKey

                                                                                                                                                                                                                                                getLayerKey: () => string;

                                                                                                                                                                                                                                                  method getMap

                                                                                                                                                                                                                                                  getMap: () => Map;

                                                                                                                                                                                                                                                    method getMapId

                                                                                                                                                                                                                                                    getMapId: () => string;

                                                                                                                                                                                                                                                      method getOpacity

                                                                                                                                                                                                                                                      getOpacity: () => number;

                                                                                                                                                                                                                                                        method getProperties

                                                                                                                                                                                                                                                        getProperties: () => MapsEngineLayerProperties;

                                                                                                                                                                                                                                                          method getStatus

                                                                                                                                                                                                                                                          getStatus: () => MapsEngineStatus;

                                                                                                                                                                                                                                                            method getZIndex

                                                                                                                                                                                                                                                            getZIndex: () => number;

                                                                                                                                                                                                                                                              method setLayerId

                                                                                                                                                                                                                                                              setLayerId: (layerId: string) => void;

                                                                                                                                                                                                                                                                method setLayerKey

                                                                                                                                                                                                                                                                setLayerKey: (layerKey: string) => void;

                                                                                                                                                                                                                                                                  method setMap

                                                                                                                                                                                                                                                                  setMap: (map: Map | null) => void;

                                                                                                                                                                                                                                                                    method setMapId

                                                                                                                                                                                                                                                                    setMapId: (mapId: string) => void;

                                                                                                                                                                                                                                                                      method setOpacity

                                                                                                                                                                                                                                                                      setOpacity: (opacity: number) => void;

                                                                                                                                                                                                                                                                        method setOptions

                                                                                                                                                                                                                                                                        setOptions: (options: MapsEngineLayerOptions) => void;

                                                                                                                                                                                                                                                                          method setZIndex

                                                                                                                                                                                                                                                                          setZIndex: (zIndex: number) => void;

                                                                                                                                                                                                                                                                            class MapsEventListener

                                                                                                                                                                                                                                                                            class MapsEventListener {}

                                                                                                                                                                                                                                                                              class MouseEvent

                                                                                                                                                                                                                                                                              class MouseEvent {}

                                                                                                                                                                                                                                                                                method stop

                                                                                                                                                                                                                                                                                stop: () => void;

                                                                                                                                                                                                                                                                                  interface MapsEngineLayerOptions

                                                                                                                                                                                                                                                                                  interface MapsEngineLayerOptions {}

                                                                                                                                                                                                                                                                                    property accessToken

                                                                                                                                                                                                                                                                                    accessToken?: string;

                                                                                                                                                                                                                                                                                      property clickable

                                                                                                                                                                                                                                                                                      clickable?: boolean;

                                                                                                                                                                                                                                                                                        property fitBounds

                                                                                                                                                                                                                                                                                        fitBounds?: boolean;

                                                                                                                                                                                                                                                                                          property layerId

                                                                                                                                                                                                                                                                                          layerId?: string;

                                                                                                                                                                                                                                                                                            property layerKey

                                                                                                                                                                                                                                                                                            layerKey?: string;

                                                                                                                                                                                                                                                                                              property map

                                                                                                                                                                                                                                                                                              map?: Map;

                                                                                                                                                                                                                                                                                                property mapId

                                                                                                                                                                                                                                                                                                mapId?: string;

                                                                                                                                                                                                                                                                                                  property opacity

                                                                                                                                                                                                                                                                                                  opacity?: number;

                                                                                                                                                                                                                                                                                                    property suppressInfoWindows

                                                                                                                                                                                                                                                                                                    suppressInfoWindows?: boolean;

                                                                                                                                                                                                                                                                                                      property zIndex

                                                                                                                                                                                                                                                                                                      zIndex?: number;

                                                                                                                                                                                                                                                                                                        interface MapsEngineLayerProperties

                                                                                                                                                                                                                                                                                                        interface MapsEngineLayerProperties {}

                                                                                                                                                                                                                                                                                                          property name

                                                                                                                                                                                                                                                                                                          name: string;

                                                                                                                                                                                                                                                                                                            interface MapsEngineMouseEvent

                                                                                                                                                                                                                                                                                                            interface MapsEngineMouseEvent {}

                                                                                                                                                                                                                                                                                                              property featureId

                                                                                                                                                                                                                                                                                                              featureId?: string;

                                                                                                                                                                                                                                                                                                                property infoWindowHtml

                                                                                                                                                                                                                                                                                                                infoWindowHtml?: string;

                                                                                                                                                                                                                                                                                                                  property latLng

                                                                                                                                                                                                                                                                                                                  latLng?: LatLng;

                                                                                                                                                                                                                                                                                                                    property pixelOffset

                                                                                                                                                                                                                                                                                                                    pixelOffset?: Size;

                                                                                                                                                                                                                                                                                                                      enum MapsEngineStatus

                                                                                                                                                                                                                                                                                                                      enum MapsEngineStatus {
                                                                                                                                                                                                                                                                                                                      INVALID_LAYER = 'INVALID_LAYER',
                                                                                                                                                                                                                                                                                                                      OK = 'OK',
                                                                                                                                                                                                                                                                                                                      UNKNOWN_ERROR = 'UNKNOWN_ERROR',

                                                                                                                                                                                                                                                                                                                        member INVALID_LAYER

                                                                                                                                                                                                                                                                                                                        INVALID_LAYER = 'INVALID_LAYER'

                                                                                                                                                                                                                                                                                                                          member OK

                                                                                                                                                                                                                                                                                                                          OK = 'OK'

                                                                                                                                                                                                                                                                                                                            member UNKNOWN_ERROR

                                                                                                                                                                                                                                                                                                                            UNKNOWN_ERROR = 'UNKNOWN_ERROR'

                                                                                                                                                                                                                                                                                                                              Package Files (1)

                                                                                                                                                                                                                                                                                                                              Dependencies (0)

                                                                                                                                                                                                                                                                                                                              No dependencies.

                                                                                                                                                                                                                                                                                                                              Dev Dependencies (0)

                                                                                                                                                                                                                                                                                                                              No dev dependencies.

                                                                                                                                                                                                                                                                                                                              Peer Dependencies (0)

                                                                                                                                                                                                                                                                                                                              No peer dependencies.


                                                                                                                                                                                                                                                                                                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                                                                                                                                                                                                                                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/googlemaps.

                                                                                                                                                                                                                                                                                                                              • Markdown
                                                                                                                                                                                                                                                                                                                              • HTML
                                                                                                                                                                                                                                                                                                                                <a href="https://www.jsdocs.io/package/@types/googlemaps"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>