modify map plugin to redraw on edit