Options
All
  • Public
  • Public/Protected
  • All
Menu

This class implements the MapType interface and is provided for rendering image tiles.

Access by calling const {ImageMapType} = await google.maps.importLibrary("maps"). See https://developers.google.com/maps/documentation/javascript/libraries.

Hierarchy

Implements

Index

Constructors

Properties

alt: null | string

Alt text to display when this MapType's button is hovered over in the MapTypeControl. Optional.

maxZoom: number

The maximum zoom level for the map when displaying this MapType. Required for base MapTypes, ignored for overlay MapTypes.

minZoom: number

The minimum zoom level for the map when displaying this MapType. Optional; defaults to 0.

name: null | string

Name to display in the MapTypeControl. Optional.

projection: null | Projection

The Projection used to render this MapType. Optional; defaults to Mercator.

radius: number

Radius of the planet for the map, in meters. Optional; defaults to Earth's equatorial radius of 6378137 meters.

tileSize: null | Size

The dimensions of each tile. Required.

Methods

  • Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

    Parameters

    • eventName: string
    • handler: Function

    Returns MapsEventListener

  • bindTo(key: string, target: MVCObject, targetKey?: null | string, noNotify?: boolean): void
  • Binds a View to a Model.

    Parameters

    • key: string
    • target: MVCObject
    • Optional targetKey: null | string
    • Optional noNotify: boolean

    Returns void

  • get(key: string): any
  • Gets a value.

    Parameters

    • key: string

    Returns any

  • getOpacity(): number
  • Returns the opacity level (0 (transparent) to 1.0) of the ImageMapType tiles.

    Returns number

  • getTile(tileCoord: null | google.maps.Point, zoom: number, ownerDocument: null | Document): null | Element
  • Parameters

    • tileCoord: null | google.maps.Point

      Tile coordinates.

    • zoom: number

      Tile zoom.

    • ownerDocument: null | Document

      The document which owns this tile.

    Returns null | Element

  • notify(key: string): void
  • Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

    Parameters

    • key: string

    Returns void

  • releaseTile(tileDiv: null | Element): void
  • Parameters

    • tileDiv: null | Element

      Tile to release.

    Returns void

  • set(key: string, value: unknown): void
  • Sets a value.

    Parameters

    • key: string
    • value: unknown

    Returns void

  • setOpacity(opacity: number): void
  • Sets the opacity level (0 (transparent) to 1.0) of the ImageMapType tiles.

    Parameters

    • opacity: number

      The new opacity.

    Returns void

  • setValues(values?: null | object): void
  • Sets a collection of key-value pairs.

    Parameters

    • Optional values: null | object

    Returns void

  • unbind(key: string): void
  • Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

    Parameters

    • key: string

    Returns void

  • unbindAll(): void

Generated using TypeDoc