How do I get the Map to refresh automatically when someone types in the search bar (like the list does)?

You are here : Home / How do I get the Map to refresh automatically when someone types in the search bar (like the list does)?

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

Please login or Register to Submit Answer

Customize Product according to your requirements?

We will be glad to discuss any of your needs related to our wordpress plugins . if any of functionality you'd like to see in products, you can reach us by via email hello@flippercode.com.