I was looking at utilizing the MappedinEvents class but am struggling a bit on how to get the data. I was hoping you can help me with properly initializing this class?
Here is how i have it currently set up:
const mappedin = new Mappedin(options);
const events = new MappedinEvent(mappedin, findLocations[0]);
findLocations[0] is a location object that has an event attached to it.
My set up is returning the location object as well as an empty start and end date, image, descrption, etc.
Tried following the docs but I think i am missing something!
To reduce the amount of data downloaded with each map load, the Mappedin SDK has a default data set for commonly used features that it downloads with each request. Event data is not part of that default data set. To have it included, specify the event data type to be an additional thing that gets downloaded.
Here is an example of a TGetVenueOptions object that instructs the SDK to download events.