clear method

void clear()

清空所有图层

Implementation

void clear() {
  _layers.clear();
  _selectedLayerId = null;
}