Working in the fusion of edit and view code of visualmap.