Using a Google Map custom field on the frontend, is there a way to automatically find the current location by default? So the user doesn’t have to click the “Find current location” button or, in other words, the default center of the map is the user’s current location?
Could this piece of code also be modified (with a cookie placement for instance) so it auto-triggers the find-location-function only if there’s been no location set yet? So if the user enters a city name in the field and returns to the page later, the find-location function won’t be triggered? Or that it’s only triggered on first visit?
Thanks for your reply in advance!
Kind regards, Emiel.
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘Auto center Google Map to current location’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users