Optional
imageOptional
rankingsOptional
updatedChange the language of the venue. This will trigger a re-fetch of the venue data and emit a {GET_VENUE_EVENT.LANGUAGE_CHANGED} event.
The language code to change to
Optional
cache: booleanWhether or not to cache the current language so it doesn't need to be re-fetched
Experimental
Hydrate the Mappedin instance using a response from either Mappedin.toString, getVenueBundle or by downloading the bundle manually
Mappedin data that was serialized or exported as JSON
Optional
shouldPopulateBundledImagesAsBlobs: booleanTakes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default
Unsubscribe a function previously subscribed with on
An event name to which the provided function was previously subscribed.
A function that was previously passed to on. The function must have the same reference as the function that was subscribed.
// Unsubscribe from the 'click' event
const handler = (event) => {
console.log('Map was clicked', event);
};
map.off('click', handler);
Subscribe a function to an event.
An event name which, when fired, will call the provided function.
A callback that gets called when the corresponding event is fired. The callback will get passed an argument with a type that's one of event payloads.
// Subscribe to the 'click' event
const handler = (event) => {
const { coordinate } = event;
const { latitude, longitude } = coordinate;
console.log(`Map was clicked at ${latitude}, ${longitude}`);
};
map.on('click', handler);
Deprecated
Use hydrateVenue instead