I was having some complaints about the UI for the map and I couldn't figure out where all the confusion was coming from. Honestly, I just kept thinking these people were crazy. Finally, it clicked and I realized what was going on.

When there is only a single location, users are confused as to why they have to click that location to get any directions or see the popup map info. They enter their info in the search, and then nothing happens. Well, by default, it's assuming there are multiple locations and as they type, the results int he box are filtering. Of course, since there is only a single location, they don't see this and that one location is persistent.

Can we customize this so that in the case of a single location, that location is automatically selected? Or perhaps hide the search filter unless they select directions from the map popup? Any other ideas welcome.

Comments

RKS’s picture

I've been attempting a js solution that serves as a slight workaround where I just hide the search form until the user clicks directions. Then I ensure the user has already selected a location (the only location). So far I;ve had trouble getting the click event due to the popup being created after the js init so I'm looking into that. If I find the solution, I'll post it if anyone wants it.

michfuer’s picture

Status: Active » Closed (won't fix)

I really think the GSL is a bit overkill for a single location, since most of it's value is in finding the stores nearest you, and quickly. It's not really doing any store filtering with one location. I can see how the "Get Directions" feature is desirable for even one store, but there's likely a trimmed down solution using just GMaps API that you could have a user input a location, and then redirect them to Google Maps and "Get Directions" automatically.

RKS’s picture

Unfortunately Google API is not easy. That's why we love your module.