Support » Plugin: The Events Calendar » Set a default map zoom level and center

  • Resolved mortetm

    (@mortetm)


    We have many events on the event calendar, but I would like to not have them all in the main view. I would like to set the default centre of the map and zoom level to custom values.
    I tried setting

    tg.map.setCenter({lat: -34, lng: 151});
     tg.map.setZoom( 13 );

    in
    plugins/events-calendar-pro/src/resources/js/tribe-events-ajax-maps.js, but it didn’t change anything.

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Set a default map zoom level and center’ is closed to new replies.