updating legends map