implement map layout