Adjust the method of call MapDialog