Map view not showing map

Home Forums Calendar Products Events Calendar PRO Map view not showing map

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1569618
    Shauna
    Participant

    Hi, we are having an issue where the map is not showing on our main calendar page, but it is showing on the individual event page once you click into an event from the main calendar page. We have customized these templates a little.

    The code being used for the main calendar page is this:
    <?php tribe_get_template_part( ‘pro/map/nav’, ‘header’ ); ?>

    And the code for the individual event page is this:
    <?php tribe_get_template_part( ‘modules/meta/map’ ); ?>

    However, when I try to use the latter for the main calendar page template, it still doesn’t work.

    Is there any hint you can give us as to what’s gone wrong with this and how we might fix it?

    Thanks

    #1570823
    Jennifer
    Keymaster

    Hi Shauna,

    Thanks for reaching out!

    I took a look at your main events page and am seeing this error in the console:

    Google Maps JavaScript API error: RefererNotAllowedMapError

    You can read more about this error here, but it means that the current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Can you check the referrer settings of your API key and see if that fixes things?

    Let me know how it goes!

    Thanks,

    Jennifer

    #1571107
    Shauna
    Participant

    Hi, sorry about that, the referrers were correct for live but not staging.

    I have fixed the issue with the referrers now, but the main page map is still not loading. The maps do show up on the individual event pages so that should mean the referrers are ok.

    Thanks
    Shauna

    #1571697
    Jennifer
    Keymaster

    Hi Shauna,

    I took another look at the page, and I am no longer seeing that error (so good news there!). Can you try switching to the default template temporarily to see if the map is working there? If so, this could be caused by the way that your custom template is set up. We are limited in the amount of support that we can provide for customizations, but if you can send me the full template via a gist, I’ll be happy to take a look and see what I can recommend!

    Thanks,

    Jennifer

    #1571698
    Jennifer
    Keymaster

    One other thing: if you’re doing any caching on your site (such as via a plugin or on your server), you’ll want to make sure you’ve cleared that out as well.

    #1587674
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Map view not showing map’ is closed to new replies.