removeImage method

dynamic removeImage(
  1. String id
)

Remove an image from a style. This can be an image from the style's original sprite or any images that have been added at runtime using {@link addImage}.

@param id The ID of the image.

@example // If an image with the ID 'cat' exists in // the style's sprite, remove it. if (map.hasImage('cat')) map.removeImage('cat');

Implementation

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