All events on maps

Home Forums Calendar Products Events Calendar PRO All events on maps

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #150157
    dirkschrama
    Participant

    At the moment I show 6 events on the frontpage. The maps-view also only shows 6 events. I would love to have all events on the maps visible. How to do that?

    #150970
    Barry
    Member

    Hi dirkschrama,

    Just to make sure I’m understanding this correctly – you want to display all upcoming events (taking place at venues with sufficient address info) on map view but this should only happen on map view – is that correct?

    It is probably possible to do this but if you have a truly large number of events it may also raise some performance concerns, depending of course on your particular setup and what sort of caching etc you have in place.

    #151334
    dirkschrama
    Participant

    Hi Barry,

    yes correct. We have a calendar of about 80 running events in a year spread all over the country. In the map-view we would see all these 80 events on the maps-view. In the list I still want to see 6 events, but on the Google Map on the top of the page I want the 80 markers.

    #151720
    Barry
    Member

    Ah, I see – thanks for clarifying.

    So that’s going to be slightly tricky especially if the list of events under the map will maintain the ordinary number of just 6 events per page. It’s basically going to involve some custom dev work – but here are a few pointers:

    • The pinmarker data is contained in the markers element of an array, which you can filter using tribe_events_ajax_response
    • Left to its own devices, Event Calendar PRO generates markers for each of the events in the list and you can see the code in TribeEventsGeoLoc::generate_markers() – you could use this as a template for your own approach, but populate the list of markers with a greater number of events than happens by default

    I hope that helps – and good luck 🙂

    #151775
    dirkschrama
    Participant

    Thanks Barry.

    #151791
    Barry
    Member

    Our pleasure 🙂

    I’ll go ahead and close the thread, but if we can help with anything else please don’t hesitate to create new threads as needed.

    Thanks again!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘All events on maps’ is closed to new replies.