Boiler plate code for map editor.