002987: The layer type of the target layer and update layer must match.

Description

The target and update layers must be the same type of web layer. For example, if the target layer is a vector tile layer, the update layer must also be a vector tile layer.

Solution

Provide an update layer that matches the target layer type. Alternatively, provide a target layer that matches the update layer type.