• JMap.Query.getQueryByLayerId

    Returns a query for a given query id, and a given layer id.

    Parameters

    • layerId: JId

      The JMap layer id

    • queryId: string

      The JMap query id

    Returns JQuery

    Throws

    if layer or query ids are not correct (invalid format or no resource exists)

    Example

    // returns query id=3 of layer id=12
    JMap.Query.getQueryByLayerId(12, 3)