Forums

The Events Calendar
Google Maps zoom (4 posts)

  1. mayday
    Member
    Posted 7 months ago #

    I have the free version 2.o.1 installed. How can I get the Google map that is displayed to zoom in closer when loaded in the single event view?

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. CarolinaEpicurean
    Member
    Posted 6 months ago #

    I'm wondering the same thing. Is there a way to set zoom level on the map?

  3. Treadhouse
    Member
    Posted 6 months ago #

    I just did my first word press install this weekend and I ran into this same problem. To my excitement, I was able to fix it!

    If you go to Plugins > Editor > and open the file:
    the-events-calendar/admin-views/event-map.php

    About the 10th line of code gets to this part:

    function initialize() {
    	var myOptions = {
    	    zoom: 14,
    	    center: event_address,
    	    mapTypeId: google.maps.MapTypeId.ROADMAP

    the zoom # is what you want to play with. I think the default is 8. 4 is roughly showing the entire US, 14 gets you about 4 blocks in Washington, DC.

  4. CarolinaEpicurean
    Member
    Posted 6 months ago #

    Oooooo. Thank you Treadhouse! I'll give that a try.

Reply

You must log in to post.

About this Plugin

About this Topic