Home › Forums › Calendar Products › Events Calendar PRO › Map view not showing map
- This topic has 4 replies, 2 voices, and was last updated 7 years, 8 months ago by
Shauna.
-
AuthorPosts
-
July 6, 2018 at 1:19 pm #1569618
Shauna
ParticipantHi, 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
July 9, 2018 at 9:54 am #1570823Jennifer
KeymasterHi 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
July 9, 2018 at 3:06 pm #1571107Shauna
ParticipantHi, 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
ShaunaJuly 10, 2018 at 9:17 am #1571697Jennifer
KeymasterHi 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
July 10, 2018 at 9:18 am #1571698Jennifer
KeymasterOne 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.
August 1, 2018 at 9:35 am #1587674Support 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 ‘Map view not showing map’ is closed to new replies.
