update map and add frame rendering for map