Documentation / @expofp/floorplan / FloorPlan
Interface: FloorPlan
Represents a floor plan.
Properties
allowConsent
readonly allowConsent: boolean | undefined;Deprecated
The consent decision lives on the config — set the consent option instead. true ⇄ 'granted', false ⇄ 'denied', undefined ⇄ 'ask'.
element
readonly element: HTMLDivElement;eventId
readonly eventId: string;noOverlay
readonly noOverlay: boolean;offHistory
readonly offHistory: boolean;onInit
readonly onInit: (fp) => void;Parameters
fp
FloorPlan
Returns
void
onLeaveEvent?
optional onLeaveEvent?: () => void;Returns
void
ready
readonly ready: Promise<void>;Methods
activateFloor()
activateFloor(floorId): void;Parameters
floorId
index?
number
name?
string
Returns
void
applyParameters()
applyParameters(queryRaw): void;Parameters
queryRaw
string
Returns
void
boothsList()
boothsList(): FloorPlanBooth[];Returns
categoriesList()
categoriesList(): FloorPlanCategory[];Returns
changeLanguage()
changeLanguage(langId): void;Parameters
langId
string
Returns
void
convertToGeo()
convertToGeo(x, y): [number, number];Parameters
x
number
y
number
Returns
[number, number]
deselectCurrentPosition()
deselectCurrentPosition(): void;Returns
void
deselectRoute()
deselectRoute(): void;Returns
void
exhibitorsList()
exhibitorsList(): FloorPlanExhibitor[];Returns
findLocation()
findLocation(): void;Returns
void
fitBounds()
Call Signature
fitBounds(): void;Returns
void
Call Signature
fitBounds(bounds, options?): void;Parameters
bounds
options?
padding?
number
Returns
void
getBoothRect()
getBoothRect(name): Rect;Parameters
name
string
Returns
getBounds()
getBounds(selectors): Bounds | undefined;Parameters
selectors
Returns
Bounds | undefined
getCamera()
getCamera(): Camera;The camera state last requested via setCamera (or the equivalent URL parameters) — not a live gesture-tracking camera: panning or zooming by hand does not update it.
Returns
getCenterCoordinates()
getCenterCoordinates(): FloorPlanGetCoordsEvent;Returns
getFloors()
getFloors(): Floor[];Returns
Floor[]
getGeoConfig()
getGeoConfig(): GeoConfig | null;Returns
GeoConfig | null
getOptimizedRoutes()
getOptimizedRoutes(waypoints): RouteInfo[];Parameters
waypoints
Returns
getVisibility()
getVisibility(): Visibility;Returns
hidePathways()
hidePathways(): void;Returns
void
highlightBooths()
highlightBooths(externalIds): void;Parameters
externalIds
string[]
Returns
void
highlightExhibitors()
highlightExhibitors(externalIds): void;Parameters
externalIds
string[]
Returns
void
isGpsTrackingEnabled()
isGpsTrackingEnabled(): boolean;Returns
boolean
onBookmarkClick()
onBookmarkClick(e): void;Parameters
e
Returns
void
onBoothClick()
onBoothClick(e): void;Parameters
e
Returns
void
onCategoryClick()
onCategoryClick(e): void;Parameters
e
Returns
void
onCurrentPositionChanged()
onCurrentPositionChanged(point): void;Parameters
point
Returns
void
onDetails()
onDetails(e): void;Parameters
e
Returns
void
onDirection()
onDirection(e): void;Parameters
e
Returns
void
onExhibitorCustomButtonClick()
onExhibitorCustomButtonClick(e): void;Parameters
e
Returns
void
onFloorActivated()
onFloorActivated(floor): void;Parameters
floor
Returns
void
onFpConfigured()
onFpConfigured(): void;Returns
void
Deprecated
The onFpConfigured method is deprecated. Use onInit instead.
onGetCoordsClick()
onGetCoordsClick(e): void;Parameters
e
Returns
void
onMarkerClick()
onMarkerClick(e): void;Parameters
e
Returns
void
onVisitedClick()
onVisitedClick(e): void;Parameters
e
Returns
void
openPlanner()
openPlanner(options?): void;Opens the route planner, optionally pre-filled with slugs or the visitor's bookmarks.
Parameters
options?
from?
string
fromBookmarks?
boolean
items?
string[]
Returns
void
reset()
reset(): void;Returns
void
search()
search(term): Promise<object[]>;Parameters
term
string
Returns
Promise<object[]>
select()
select(slugOrExternalId): void;Opens whatever the slug or external id names — a booth, a schedule session, an exhibitor, a category or a speaker (checked in that order); anything else opens the search list with the value as the search text. The programmatic twin of the ?<slug> deep link.
Parameters
slugOrExternalId
string
Returns
void
selectAccessibleRoute()
selectAccessibleRoute(waypoints): void;Same as selectRoute, but restricts the path to accessible segments only.
Parameters
waypoints
Ordered route stops (booth name/ID or CurrentPosition).
Returns
void
selectBooth()
selectBooth(nameOrExternalId): void;Parameters
nameOrExternalId
string
Returns
void
selectCategory()
selectCategory(nameOrSlug?): void;Parameters
nameOrSlug?
string
Returns
void
selectCurrentPosition()
selectCurrentPosition(
point,
focus,
icon?): void;Parameters
point
focus
boolean
icon?
number
Returns
void
selectExhibitor()
selectExhibitor(nameOrExternalId): void;Parameters
nameOrExternalId
string
Returns
void
selectRoute()
Call Signature
selectRoute(from, to): void;Parameters
from
to
Returns
void
Call Signature
selectRoute(waypoints): void;Parameters
waypoints
Returns
void
selectTour()
selectTour(tourId): void;Launches the tour with the given id; unknown ids fall back to the tours list.
Parameters
tourId
string
Returns
void
setBookmarks()
setBookmarks(bookmarks): void;Parameters
bookmarks
object[]
Returns
void
setCamera()
setCamera(camera): void;Moves the camera. Partial-merge semantics: only the fields present in camera change, omitted ones keep their current values — e.g. setCamera({ bearing: 90 }) rotates the map without moving its center. The center is set either as floor-plan projected coordinates (x/y) or as GPS (lat/lng) — each is a pair, so both halves must be given. floor activates the named floor, bearing rotates the map (0–360°) and zoomTime sets the camera animation duration in milliseconds. Applied as soon as the renderer is ready. Also available as the setCamera intent (URL deep link).
Parameters
camera
Returns
void
setEntitiesBookmarks()
setEntitiesBookmarks(bookmarks): void;Parameters
bookmarks
object[]
Returns
void
setEntitiesVisited()
setEntitiesVisited(entities): void;Parameters
entities
object[]
Returns
void
setGpsTrackingEnabled()
setGpsTrackingEnabled(value): void;Parameters
value
boolean
Returns
void
setMarkers()
setMarkers(markersData): void;Parameters
markersData
Returns
void
setVisibility()
setVisibility(visibility): void;Parameters
visibility
Returns
void
showList()
showList(list): void;Opens one of the named list panels (the ?bookmarks, ?sessions, … deep links).
Parameters
list
| "language" | "exhibitors" | "visited" | "speakers" | "bookmarks" | "sessions" | "tours"
Returns
void
showPathway()
showPathway(pathwayId, externalIds): void;Parameters
pathwayId
string
externalIds
string[]
Returns
void
showPathwayOnly()
showPathwayOnly(pathwayId, floorId): void;Parameters
pathwayId
string
floorId
string
Returns
void
showSearch()
showSearch(): void;Returns
void
startBuildRoute()
startBuildRoute(): void;Enters the interactive route-building mode.
Returns
void
switchView()
switchView(): void;Returns
void
unstable_destroy()
unstable_destroy(): void;Returns
void
updateLayerVisibility()
updateLayerVisibility(layer, visible): void;Parameters
layer
string
visible
boolean
Returns
void
zoomIn()
zoomIn(): void;Returns
void
zoomOut()
zoomOut(): void;Returns
void
zoomTo()
zoomTo(selectors, options?): void;Parameters
selectors
options?
padding?
number
Returns
void