update map rendering logic