Skip to content

Latest commit

 

History

History
135 lines (88 loc) · 2.1 KB

File metadata and controls

135 lines (88 loc) · 2.1 KB

TileOverlay class

this.map.addTileOverlay(options: TileOverlayOptions).then((tileOverlay: TileOverlay) => {

});

API Reference


Instance methods

  • getId()

    Returns the ID of instance.

    ➡️ Returns string

  • getMap()

    Return the map instance.

    ➡️ Returns GoogleMap instance.

  • setFadeIn(fadeIn)

    Set whether the tiles should fade in.

    Params Type Details
    fadeIn boolean true or false
  • getFadeIn()

    Get whether the tiles should fade in

    ➡️ Returns boolean.

  • setOpacity(opacity)

    Changes the opacity of the tile overlay from 0.0 to 1.0

    Params Type Details
    opacity number from 0.0 to 1.0
  • getOpacity()

    Returns the current opacity

    ➡️ Returns number.

  • setVisible(clickable)

    Set tile overlay visibility

    Params Type Details
    visible boolean true or false
  • getVisible()

    Returns true if the tile overlay is visible.

    ➡️ Returns boolean.

  • setZIndex(index)

    Changes the tile overlay zIndex order.

    Params Type Details
    index number z-index
  • getZIndex()

    Returns the current tile overlay zIndex.

    ➡️ Returns number.

    getTileSize()

    Get tile size

    ➡️ Returns number.

  • remove()

    Remove the tile overlay.