When you type something in the search the list of markers refreshes live and it seems like the markers refresh on the map itself but the map doesn’t re-center on where you are searching until you select a marker from the list.

Site is http://dev.tuffgrade.ca/distributor-locator/

Public
Hello,
Searching is ajax based when you search your any created location your respected location is automatically showed on your map.

Thanks
#1
Public
Right but the map doesn't automatically re-center until you select a location. Is there any way to have the map re-center as the list populates when you are searching (before selecting a filter or selects a marker)?
#2
Public
Hello,
Please check this tutorial https://wpgmp.flippercode.com/example/change-center-point-on-marker-click-in-google-maps/

I think it will helps you.

Thanks
#3
Public
Hi - I don't see a tutorial on that page. Am I missing something?
#4
Public
Hello,
I gave you link of an example, please go to 'info-window settings' where you will find 'center the point', enable it then when you click on any marker at front-end your marker will shift to the center of the maps. Enclosed screenshots.


Thanks
#5
Public
Right, I have that enabled and it works when I click on a location/marker but I want the map to recenter based on the search results automatically (like the list automatically updates when you do a search). Is this possible?
#6
Public
I am sorry this is not possible in this plugin.

Thanks
#7

Please login or Register to Submit Answer