Event marker not displaying on Map view-Google API works fine for other events.

Home Forums Calendar Products Events Calendar PRO Event marker not displaying on Map view-Google API works fine for other events.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1275930
    Michael
    Participant

    I just added a new event that is taking place in Canada. We have a different event in Canada that has a map marker showing correctly. I tried checking box to use latitude and longitude in venue settings. I have tried flushing my cache and had no success getting marker to display.

    #1276054
    Michael
    Participant

    After doing some troubleshooting, the map marker does appear when I select the Canada category. I currently have two events in Canada that should populate on the default map view. Only one shows up with zero categories selected. When I select the Canada category, I get a zoomed in approach on the map and both markers appear normally.

    I know that the map is capable of showing locations all over the world because of a location glitch in previous versions of plugin. In those cases, markers were appearing in completely wrong locations, sometimes different countries or in the middle of the ocean, until latitude and longitude info was entered in venue details.

    Anyone have any ideas?

    #1277072
    Geoff B.
    Member

    Good evening Cory and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    I believe what is going on is that there are a couple of Google Maps related messages showing in Google Chrome’s developer console.

    Solving these (especially the “You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”) issue should get you one step closer to resolution.

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1279259
    Michael
    Participant

    Hello Geoff,

    Thanks for your support.
    I researched the errors regarding the Google API.
    I am using the Avada Theme by ThemeFusion.
    They require the Google API be input in the theme settings.
    Your plugin requires the API in your Event Settings.

    One solution I found online is to remove one API or kill the plugin.
    We use Events Calendar Pro and have purchased the Filter Bar add-on because the plugin was was suggested by the theme developer and comes linked together.
    There has to be a way for both to work off of one API and only one request for API to be added to page when viewing Events.

    Can you assist me in figuring out how to prevent plugin from adding API multiple times?

    I also noticed that the map view seems to limit what events display by the current date range or by some form of pagination on upcoming events page.

    I noticed that the map marker I thought was missing does in fact show up when I select the date range of the event.

    How can I adjust php to make map view show all upcoming future events on first view?

    Thanks for your help.

    #1280665
    Geoff B.
    Member

    Good evening Cory,

    Thank you for writing back and kudos for the troubleshooting!

    Can you assist me in figuring out how to prevent plugin from adding API multiple times?

    I am pretty sure you could simply adapt the following snippet in the functions.php file of your theme (without the PHP tag at the top): https://gist.github.com/cliffordp/ca3baf77c9be8b72f37db10c7c91783b

    I also noticed that the map view seems to limit what events display by the current date range or by some form of pagination on upcoming events page.

    That is correct, the map view will be a reflection of the events currently listed on screen.

    You could apply the following snippet in the functions.php file of your theme (without the PHP tag at the top): https://gist.github.com/GeoffEW/27b1228b4dd425294a050df0fb63010e

    That will display all the markers.

    Let me know how that goes.

    Best regards,
    Geoff B.

     

    #1290884
    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 ‘Event marker not displaying on Map view-Google API works fine for other events.’ is closed to new replies.