Support » Plugin: Advanced Custom Fields » SATELLITE mapTypeId for GoogleMaps fields on background admin view

  • I tried to include the next code in my functions.php theme file but doesn’t work:

    add_action('acf/input/admin_footer', 'my_acf_change_map_to_satelite');
    function my_acf_change_map_to_satelite() {
        <script type="text/javascript">
        (function($) {
            acf.add_filter('google_map_args', function( args, $field ){
                // Change Map to Satellite
                args['mapTypeId'] = 'satellite';
                // return
                return args;

    The browser console throwsme the next error:
    “acf.add_filter is not a function”

    What I’m doing wrong?

  • You must be logged in to reply to this topic.