we have organized the code of the map editor.