Support

Account

Home Forums ACF PRO Auto center Google Map to current location Reply To: Auto center Google Map to current location

  • Hi @emiel

    You could write some JS to trigger a click on the locate button by default like so:

    <script type="text/javascript">
    (function($) {
    	
    	acf.on('ready', function(){
    		
    		$('.field[data-key="field_123"] a[data-name="find-location"]').trigger('click');
    		
    	})
    	
    })(jQuery);	
    </script>

    Cheers
    E