Venues only in map view?

Home Forums Calendar Products Events Calendar PRO Venues only in map view?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1061057
    Chris
    Participant

    I need to show a map view of just venues for the site. I know that I can use a link like /events/map to show events in map view, but I need to just show the venues.

    I already tried to do a custom page template, but could not get the map working. Is there a solution that I could use, to just show all selected venues (from a custom query) to show on a map, like for the regular map view?

    #1061866
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    We only have the Map view to display events and not by venues. It is beyond the support we can provide to help out on customizations and we do not have any resources to provide on a major customization such as this.

    If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.

    http://tribe.uservoice.com/

    Let me know if you have any follow up questions.

    Thanks

    #1062533
    Chris
    Participant

    Thanks for the information. I can do the custom query to get the venues that I need, but I want to use your Ajax_Map asset class, in order to get the map shown. I don’t want to re-invent the wheel and all the necessary functions are already there.

    This is what I tried:

    I create a custom page template and call the function:

    Tribe__Events__Pro__Template_Factory::asset_package( ‘ajax-maps’ );

    that should include the javaScript for “tribe-maps” and “tribe-events-pro-geoloc” into the template. But for some reason, they are not showing up on the page.

    I think I can just copy the code inside the handle method and rebuild the functionality, but it would be better coding standard to use the existing class. I stepped through it via debugger, and the javaScript files are actually registered and enqueued when I step through, but at some point it seems that they are de-registered somewhere in the modern tribe code.

    If you can just point me to the right direction, so that I can use this existing asset, I can take it from there and build the map by myself.

    #1062746
    Brian
    Member

    Hi,

    I can try to help out, but limited in troubleshooting and supporting customizations per our terms and conditions.

    I looked at the method itself and not sure why it is not loading.

    Instead of calling it by the class, maybe it would work better to use the coding here:

    plugins/events-calendar-pro/src/Tribe/Asset/Ajax_Maps.php

    And create your own function to load the scripts that way?

    Otherwise I am not sure what else to do on it.

    THanks

    #1078890
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Venues only in map view?’ is closed to new replies.