Forum Replies Created
-
AuthorPosts
-
Jason
ParticipantFor 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
Jason
ParticipantJamie, 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.
Jason
ParticipantThis reply is private.
Jason
ParticipantHi 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.Jason
ParticipantSame issue here with automatic updates. I’m on the most recent WP version.
Jason
ParticipantHi 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 Holdersfrom 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?
Jason
ParticipantThis reply is private.
Jason
ParticipantThis reply is private.
Jason
ParticipantThis reply is private.
Jason
Participant- No – resaving the event does not fix it.
- “Bog to bottle Discovery tour” is the event
Jason
ParticipantCliff, I can’t see the private replies since I didn’t create the ticket.
Jason
ParticipantThis reply is private.
Jason
ParticipantThis reply is private.
Jason
ParticipantHi 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.
-
This reply was modified 8 years ago by
-
AuthorPosts
