Problem:
center map to different location when address is not in the database
Solution:
Toolset map offers the Map's javascript hook "js_event_wpv_addon_maps_init_map_completed" that you should use to set the default location dynamically.
You can find proposed solution, in this case with the following reply:
https://toolset.com/forums/topic/center-map-to-different-location-when-address-is-not-in-the-database/#post-2209945
Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/maps/programmatically-change-map-settings/#changing-settings-when-using-google-maps-api
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 3 replies, has 2 voices.
Last updated by 3 years, 2 months ago.
Assisted by: Minesh.