update viewData in mapobject