Home › Forums › Calendar Products › Events Calendar PRO › Map view is not displaying events
- This topic has 5 replies, 2 voices, and was last updated 11 years, 1 month ago by
Brian.
-
AuthorPosts
-
March 18, 2015 at 10:20 am #949169
John
ParticipantI recently installed Events Calendar Pro. When I first installed the plugin, it asked me to update the geolocation data, which I did. I don’t see that option any longer in the settings. When I bring up the map view, it shows the west coast of Africa, which is nowhere near Pennsylvania :). I made some minor modifications (overrides) to the plugin to match the theme, but it still doesn’t work if I back those changes out. Any thoughts on where to go next?
March 18, 2015 at 12:35 pm #949216Brian
MemberHi,
Sorry for the issues you are having I can help troubleshoot this with you.
I visited your site and see what you mean.
I looked at the Browser Console and see this error:
You have included the Google Maps API multiple times on this page. This may cause unexpected errors.
http://maps.gstatic.com/maps-api-v3/api/js/20/4/main.js
Line 60That maybe the cause of it, can you stop your theme or another plugin from loading the Google Maps API and that may fix the issue.
Let me know about that and we can go from here.
Thanks
March 18, 2015 at 5:57 pm #949274John
ParticipantOK. I removed the customization that I’d put in to get the page to match the theme of the rest of the site and the 3 new events I added today now show up. I put the code back and I’m now still seeing those 3 events. There are many, many more recurring events that I’d added in earlier that still do not show up. No geolocation? The customization I added was to pull the feature image from the theme’s event page to add it here. I’ll admit this is a bit of a kluge fix. The real fix would be to provide the capability within the events calendar admin page to set a featured image and then get it to pull in the right theme attributes, but I haven’t gotten that far yet.
Here is what I added to default_template.php after get_header() on line 17:
<?php if ( risen_events_header_image( true ) ) : // show title and breadcrumb path over header image if provided ?>
<header id=”page-header”>
<?php risen_events_header_image(); // show featured image from page using Upcoming or Past Events template if Theme Options allows ?>
<?php
$template = risen_event_parent_page_template( $post ); // Use Upcoming or Past template?
$tpl_page = risen_get_page_by_template( $template );
if ( ! empty( $tpl_page->post_title ) ) : // use title from page using Events template ?>
<h1><?php echo $tpl_page->post_title; ?></h1>
<?php endif; ?>
<?php risen_breadcrumbs(); ?>
</header>
<?php else : // show breadcrumbs if no header image provided ?>
<?php risen_breadcrumbs(); ?>
<?php endif; ?>I don’t believe this has anything to do with google maps, so I may be chasing ghosts with this. I’ll keep digging for a better solution, but I may just decide not to use the map view.
March 19, 2015 at 7:57 am #949353Brian
MemberOk great, glad you were able to get the map view working.
For the events not showing it could be the geolocation data for the venue.
In the next version you will be able to add that data yourself, for now if you use the Events Rocket Plugin an unofficial plugin maintained by some of our developers:
Has an option to show you the coordinates fields in the venues.
You can use that to check if the Venues has the information or not.
March 19, 2015 at 5:49 pm #949569John
ParticipantThank you – that worked perfectly.
March 20, 2015 at 4:45 am #949624Brian
MemberI am glad to see you were able to fix this issue.
Since the issue is resolved I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘Map view is not displaying events’ is closed to new replies.
