• JMap.Application.Feature.deleteByIds

    Deletes features (on the server), refreshes the layer on the map and displays a success or error message when done.

    Parameters

    • layerId: JId

      the JMap layer id

    • featureIds: JId[]

      an array of features ids

    Returns Promise<JId[]>

    Example

    // delete 2 features on layer id=4
    JMap.Application.Feature.deleteByIds(4, [23, 76]).then(result => console.log("Delete result", result))