Refactoring hover on gmxVectorLayer