Home › Forums › Calendar Products › Events Calendar PRO › Google Maps Zoom for
- This topic has 5 replies, 4 voices, and was last updated 9 years, 7 months ago by
honeyl.
-
AuthorPosts
-
September 1, 2016 at 11:16 am #1158939
honeyl
ParticipantI 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
September 2, 2016 at 8:49 am #1159293Geoff
MemberHi @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,
GeoffSeptember 2, 2016 at 9:33 am #1159310honeyl
ParticipantThanks, 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
September 2, 2016 at 1:53 pm #1159504Geoff
MemberHey 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!
GeoffSeptember 24, 2016 at 9:35 am #1168325Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Google Maps Zoom for’ is closed to new replies.
