removeLayer method

  1. @override
void removeLayer(
  1. int id
)
override

Implementation

@override
void removeLayer(int id) {
  layers.removeWhere((l) => l.id == id);
  removeWhere(
    (component) => component is TileLayerComponent && component.id == id,
  );
  _confMap(lastSizeScreen!, calculateSize: true);
  refreshMap();
}