removeLayer method

dynamic removeLayer(
  1. String id
)

Remove the layer with the given id from the style.

If no such layer exists, an error event is fired.

@param {string} id id of the layer to remove @fires error

Implementation

removeLayer(String id) => jsObject.removeLayer(id);