First implementation of the map editor