Early version of MapEditor (to be improved)