Generic tile based map editor