Jason

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 46 total)
  • Author
    Posts
  • in reply to: map-created.tribe jQuery Event #1498467
    Jason
    Participant

    For anyone that’s wondering how you can do something like this, I’ve figured it out.

    <script type="text/javascript">
        jQuery( "body" ).on( "map-created.tribe", function( event, map, mapEl, options, bounds ) {
            
            //Set counter
            let count = 1;
            
            //Listen for map tilesloaded, set the zoom, and increase the count so it doesn't happen again
            map.addListener('tilesloaded', function() {
                
                if ( count === 1) map.setZoom(16);
                count++;
                
            });
            
        });
    </script>
    • This reply was modified 8 years ago by Jason. Reason: Added script tags for prettier code
    in reply to: map-created.tribe jQuery Event #1498417
    Jason
    Participant

    Jamie, I realize there’s no feature for that, which is why I was asking if anyone had used the map-created.tribe event handler. Per the tribe-events-ajax-maps.php…

    /**
     * Trigger a new event when the Map is created in order to allow Users option to customize the map by listening
     * to the correct event and having an instance of the Map variable avialable to modify if required.
     *
     * @param {Object} map An instance of the Google Map.
     * @param {Element} el The DOM Element where the map is attached.
     * @param {Object} options The initial set of options for the map.
     * @param {Object} bounds An instance with the bounds of the Map.
     *
     * @since 4.4.22
     */
    $( 'body' ).trigger( 'map-created.tribe', [ tg.map, mapEl, options, tg.bounds ] );

    This event fires when the map is created. I’m wondering if there’s a way to change the map after it’s created.

    This almost works…

    jQuery( "body" ).on( "map-created.tribe", function( event, mapObj, mapEl, options, bounds ) {
        console.log( mapObj );
        mapObj.setZoom(16);
    });

    …but like I said, it only changes briefly. Looking for ideas.

    in reply to: map-created.tribe jQuery Event #1497400
    Jason
    Participant

    This reply is private.

    in reply to: map-created.tribe jQuery Event #1497395
    Jason
    Participant

    Hi Jamie,

    That doesn’t help, unfortunately. That sets the zoom level for individual event maps. As indicated in my OP, I’m looking for the map event view (instead of list or calendar, etc). /events/map/ for example. I’ve seen in previous forum threads that what I’m asking for doesn’t exist, which is why I’m trying alternate methods.

    in reply to: Cannot download update file #1416308
    Jason
    Participant

    Same issue here with automatic updates. I’m on the most recent WP version.

    in reply to: Huge Attendee List Part 2 #1201661
    Jason
    Participant

    Hi Andreas,

    Thanks for the reply. You have no idea how badly this fix is needed for me! The event list from my last thread got up to 3522 attendees, all on one page, and they have another season coming up in the spring.

    I may have discovered another problem though. When I click, Events > Ticket Holders from the admin menu, it takes me to the attendee list for the first main event that I created. The problem is, I have more than one event right now, but it doesn’t seem that I can switch to the other ones. The only way to get to the attendee list for the other events is to go to the page I used to created it and click through from there. That’s okay for me, but for my client, it’s too confusing.

    Thoughts?

    in reply to: Huge Attendee List #1160636
    Jason
    Participant

    This reply is private.

    in reply to: Huge Attendee List #1158776
    Jason
    Participant

    This reply is private.

    in reply to: Huge Attendee List #1158774
    Jason
    Participant

    This reply is private.

    in reply to: Excluded dates not displaying properly #1154567
    Jason
    Participant
    • No – resaving the event does not fix it.
    • “Bog to bottle Discovery tour” is the event
    in reply to: Excluded dates not displaying properly #1154541
    Jason
    Participant

    Cliff, I can’t see the private replies since I didn’t create the ticket.

    in reply to: Huge Attendee List #1151218
    Jason
    Participant

    This reply is private.

    in reply to: Excluded dates not displaying properly #1151217
    Jason
    Participant

    This reply is private.

    in reply to: Excluded dates not displaying properly #1151216
    Jason
    Participant

    Hi Cliff,

    I would paste again, but it’s the exact same. This happened with another client of mine who’s using event tickets plus. All kinds of array data missing. You might want to check with Nico on that one.

    I’m attaching the screenshot you wanted and will send the link privately.

    in reply to: Excluded dates not displaying properly #1151094
    Jason
    Participant

    This reply is private.

    • This reply was modified 9 years, 8 months ago by Jason.
    • This reply was modified 9 years, 8 months ago by Cliff.
Viewing 15 posts - 1 through 15 (of 46 total)