Function addTempLayer

  • add (or update the style of) a temporary (exists only for the current session/client) layer with a tiled source NB the source cannot be updated once the layer has been added, but the style can. To update the source, remove the layer and re-add it.

    Parameters

    Returns string