• Resolved ascdev

    (@ascdev)


    In Event Manager, is there a way to set the default Google map scaling on a per event basis?
    Some of our locations are remote mountain huts and the default map in the event post needs to scale out widely to give some context, such as the neighbouring towns/landmarks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    unfortunately, this is not yet possible or available out of the box at the moment.

    TreeTrail

    (@aprilschmitt27)

    Angelo, in Events Manager is there a way to change the default Google map scaling overall? (This would be different than the default, but to be the same for all events.)

    Thread Starter ascdev

    (@ascdev)

    The default map zoom parameter can set through a filter.

    I added this code to my theme functions.php:
    add_filter( ’em_location_google_maps_embed_args’, ‘asc_change_map_args’ );
    function asc_change_map_args() {
    return array(
    ‘maptype’ => ‘roadmap’,
    ‘zoom’ => 10, // default = 15 in the event manager class
    ‘key’ => get_option(‘dbem_google_maps_browser_key’)
    );
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default map scaling’ is closed to new replies.