Google Maps Zoom for

Home Forums Calendar Products Events Calendar PRO Google Maps Zoom for

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1158939
    honeyl
    Participant

    I know where the settings are for controlling Google Map’s zoom level, and I have set it to 18.

    Maps on individual page entries show up fine, but the general map that appears when you go to “View as Map” shows much wider zoom level and does not changes, not matter what number I place in the general settings. Maps on individual entries, however, change as I change the zoom level.

    Is there something I’m missing. BTW, I

    #1159293
    Geoff
    Member

    Hi @honeyl,

    Great question! You are indeed correct — the setting you mentioned affects the zoom level of the map on single events, but I’m afraid that the setting does not impact Events Calendar PRO’s map view.

    I think it will take some custom Javascript to change the default zoom level in map view. While we’re fairly limited in how much we can support custom development questions like this here in the forums, I’d be happy to at least point you in the right direction if I can!

    The Google Maps API is pretty well documented and I was able to find an example of a customization where the zoom level was set to 12. It also shows how to center the map on a default location.

    Sorry I don’t have a concrete solution for you here, but will this at least help get you started? Please let me know.

    Cheers,
    Geoff

    #1159310
    honeyl
    Participant

    Thanks, Geoff. I can read, but not write JS, but I’m sure I can figure this out. The only followup question I have is where does the code actually go to impact this map? I have the map templates copied over to the tribe-events/pro/ directory within my theme, but I don’t have a clue where this code should go in these files. Should it go inline within content.php?

    I’m fairly limited in how much I can handle custom development like this, but I’d be happy to at least try if given more directions, and I’d be even happier to suggest that this be added as a separate value in the Map settings in future updates to the Pro paid license 🙂

    Thanks!

    — Lee

    #1159504
    Geoff
    Member

    Hey Lee, thanks for following up!

    I think the easiest approach would be to add the Javascript to the Map View template itself. That is located here:

    /wp-content/plugins/events-calendar-pro/src/views/map.php

    When you do, be sure to override the template in your theme files — this will ensure that your changes aren’t removed on future plugin updates. 🙂

    • Make a copy of the file
    • Make a new folder in your theme folder called tribe-events
    • Make another folder in that one called pro
    • Drop the copied map.php file in that last folder
    • Edit away!

    Cheers!
    Geoff

    #1168325
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Google Maps Zoom for’ is closed to new replies.