shortcode or code snippet from the google overview map with the event markers

Home Forums Calendar Products Events Calendar PRO shortcode or code snippet from the google overview map with the event markers

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1151417
    Thomas
    Participant

    Hello @all,

    i would like to grab the „google map with the event markers“ from the event overview page to put it on our startpage.

    Can i do this with a shortcode or a code snippet?

    Thx in advanced for your helping.

    Best wishes,
    Tom

    #1151676
    Brook
    Participant

    Howdy Tom,

    I would love to help you with this.

    That maps is not in any way built to be shown on other pages. Unfortunately it would almost be easier to build it from scratch than using our builtin functions for showing it. It has a number of scripts it relies on to run, and none of those will even get registered if it is not an event page. I just spent a while trying to work around this, but like I said it’s just going to be easier to build the map from scratch.

    You could use tribe_get_events() to get a list of upcoming events, just like our map view does. Grab the geo coordinates from that, then build a Google map with pins on it for each location. If you have never dealt with the Google Map API before you might could even leverage a WP map plugin to help.

    I wish I had better news here. I have logged a ticket for us to clean up our code a bit here and register scripts regardless of whether they will be used on the page. That should make it easier at some point. But until then building a wholly custom solution as I’ve outline would be the best option.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1154307
    Thomas
    Participant

    Hi Brook,

    tank you very much for your detailed answer.

    For the current state of development I’ve helped me now with a simple google map incl. some handmade event markers. This is not perfect but it works ;).

    Best wishes
    Tom

    #1154705
    Brook
    Participant

    I am happy you got a temporary solution going for now. Thanks for the idea on making this embeddable elsewhere!

    Cheers!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘shortcode or code snippet from the google overview map with the event markers’ is closed to new replies.