• JMap.Feature.deleteByIds

    Deletes the features for the given layer and features ids.

    Parameters

    • layerId: JId

      the JMap layer id

    • featureIds: JId[]

      the JMap feature ids to delete

    Returns Promise<JFeatureDeleteByIdsResult>

    Throws

    if layer or feature not found

    Example

    // deletes 3 features on layer id="3"
    JMap.Feature
    .deleteByIds(3, [4, 5, 16])
    .then(() => console.info("Features have been deleted"))
    .catch(error => console.error("An error occured", error))