• JMap.Map.displayLayerExtent

    Displays the layer extent of the given layer Id

    The layer extent will disappear after a few seconds

    Parameters

    Returns boolean

    true if the layer has an extent or false otherwise.

    Example

    // Move to layer 4 extent and display it for a few second
    JMap.Map.displayLayerExtent(4, {moveToExtent: true})