Function backend::service::layer::update

source ·
pub async fn update(
    map_id: i32,
    update: UpdateLayerDto,
    pool: &SharedPool,
) -> Result<ActionType, ServiceError>
Expand description

Update layers. Available updates are:

  • renaming of one layer
  • reordering of multiple layers
  • restoring of one layer that is makred deleted

§Errors

If the connection to the database could not be established.