By adding the scroll_to_map class on any of the Results Layout HTML elements, WordPress Premier or MySLP Enterprise subscribers can enable the scroll to map functionality on any Store Locator Plus plugin style. When the class has been added to an element in the results layout that element becomes clickable. Clicking that element will scroll the map back into view and open the map marker and info bubble for the location that was clicked.
We have used this feature in the new Bennett plugin style.
To add the feature to other styles you will need to have the Premier plugin installed for WordPress. For MySLP Enterprise users the feature is already enabled.
Go to Store Locator Plus (MySLP) or Store Locator Plus (WPSLP) | Settings | Results | Results Layout.
Edit the layout and add scroll_to_map to an existing class on an html element you want to trigger the scrolling feature or add class=”scroll_to_map” if the HTML element does not have a class assigned.
The design of the search is based on the premise that most people that are searching for something don’t care what state (where) your store is located. They only care that it is 3 miles away not 30 miles away.
I understand this is not a perfect solution for everyone. Sometimes you need to refer someone to the proper sales agent based on sales territories which are typically based on state/city/country. Discrete search can help with that, however territory support is not part of the basic Search add-on unless your territories are divided by city, state, or country alone. Directory Builder add-on can be used for territory search of that nature if no Map is included. Territories is now included in the Premier Add-on