Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1009903

    Hi guys. How to make it possible to change the scale by mouse scroll on google maps?

    #1010022

    Hey pddcoms,

    I’m getting a 404 error on the page you linked to, please check and repost.

    Best regards,
    Rikard

    #1011224

    HI

    #1011590

    Hi,

    Thank you for using Enfold.

    Based on Dude’s suggestion, you can try this code on the functions.php file to adjust the map’s parameter.

    add_filter('avf_gmap_vars', 'avf_gmap_vars_settings', 10, 1);
    function avf_gmap_vars_settings($map) {
    foreach($map['av_google_map'] as $key => $data)
    {
        $map['av_google_map'][$key]['gestureHandling'] = 'auto';
        $map['av_google_map'][$key]['scrollwheel'] = 'true';   
    }
    return $map;
    }

    Best regards,
    Ismael

    #1011813

    Hi,

    You also need to replace the file enfold\framework\js\conditional_load\avia_google_maps_api.js

    with

    https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/js/avia_google_maps_api.js.

    Do not forget to make a backup of the original file for a fallback and to clear server and browser cache.

    Use the following code in functions.php:

    
    add_filter('avf_gmap_vars', 'avf_gmap_vars_settings', 10, 1);
    function avf_gmap_vars_settings($map) 
    {
    	foreach($map['av_google_map'] as $key => $data)
    	{
    	    $map['av_google_map'][$key]['gestureHandling'] = 'greedy';
    	    $map['av_google_map'][$key]['scrollwheel'] = true;   
    	}
    	return $map;
    }
    

    Use values for gestureHandling according to https://developers.google.com/maps/documentation/javascript/interaction

    The fix in js file will be added in (one of) the next update(s).

    Best regards,
    Günter

    #1011816
    This reply has been marked as private.
    #1011872

    Hi,


    @luhlacom

    Please open an own topic for that and create an admin account for us. You can post the credentials and the link to the backend in private content there.
    WP 4.4.2 is outdated – you should update to latest WP version 4.9.8. And also update Enfold to 4.4.1. There had been major changes in the Google Maps API and Enfold only supports this in the latest version as this also required changes in php and js code.

    Best regards,
    Günter

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.