It's a puzzle, similar to the one in koga's gym in kanto. You need to navigate through the invisible maze to reach the gym leader. There is a help guide in the version five guide, it includes directions through the maze as well as a spoiler image.
------------
Visit the Awesome region maps page to see original art work of imaginary regions!