@expofp/floorplan / FloorPlan
Interface: FloorPlan
Represents a floor plan.
Properties
allowConsent
ts
readonly allowConsent: boolean;dataUrl
ts
readonly dataUrl: string;element
ts
readonly element: HTMLDivElement;eventId
ts
readonly eventId: string;noOverlay
ts
readonly noOverlay: boolean;offHistory
ts
readonly offHistory: boolean;onInit()
ts
readonly onInit: (fp) => void;Parameters
fp
FloorPlan
Returns
void
ready
ts
readonly ready: Promise<void>;Methods
activateFloor()
ts
activateFloor(floorId): void;Parameters
floorId
index?
number
name?
string
Returns
void
applyParameters()
ts
applyParameters(queryRaw): void;Parameters
queryRaw
string
Returns
void
boothsList()
ts
boothsList(): FloorPlanBooth[];Returns
categoriesList()
ts
categoriesList(): FloorPlanCategory[];Returns
convertToGeo()
ts
convertToGeo(x, y): [number, number];Parameters
x
number
y
number
Returns
[number, number]
exhibitorsList()
ts
exhibitorsList(): FloorPlanExhibitor[];Returns
findLocation()
ts
findLocation(): void;Returns
void
fitBounds()
ts
fitBounds(): void;Returns
void
getBoothRect()
ts
getBoothRect(name): Rect;Parameters
name
string
Returns
getCenterCoordinates()
ts
getCenterCoordinates(): FloorPlanGetCoordsEvent;Returns
getFloors()
ts
getFloors(): Floor[];Returns
Floor[]
getOptimizedRoutes()
ts
getOptimizedRoutes(waypoints): RouteInfo[];Parameters
waypoints
Returns
getVisibility()
ts
getVisibility(): Visibility;Returns
highlightBooths()
ts
highlightBooths(externalIds): void;Parameters
externalIds
string[]
Returns
void
highlightExhibitors()
ts
highlightExhibitors(externalIds): void;Parameters
externalIds
string[]
Returns
void
onBookmarkClick()
ts
onBookmarkClick(e): void;Parameters
e
Returns
void
onBoothClick()
ts
onBoothClick(e): void;Parameters
e
Returns
void
onCategoryClick()
ts
onCategoryClick(e): void;Parameters
e
Returns
void
onCurrentPositionChanged()
ts
onCurrentPositionChanged(point): void;Parameters
point
Returns
void
onDetails()
ts
onDetails(e): void;Parameters
e
Returns
void
onDirection()
ts
onDirection(e): void;Parameters
e
Returns
void
onExhibitorCustomButtonClick()
ts
onExhibitorCustomButtonClick(e): void;Parameters
e
Returns
void
onFloorActivated()
ts
onFloorActivated(floor): void;Parameters
floor
Returns
void
onFpConfigured()
ts
onFpConfigured(): void;Returns
void
Deprecated
The onFpConfigured method is deprecated. Use onInit instead.
onGetCoordsClick()
ts
onGetCoordsClick(e): void;Parameters
e
Returns
void
onMarkerClick()
ts
onMarkerClick(e): void;Parameters
e
Returns
void
onVisitedClick()
ts
onVisitedClick(e): void;Parameters
e
Returns
void
search()
ts
search(term): Promise<object[]>;Parameters
term
string
Returns
Promise<object[]>
selectBooth()
ts
selectBooth(nameOrExternalId): void;Parameters
nameOrExternalId
string
Returns
void
selectCategory()
ts
selectCategory(nameOrSlug?): void;Parameters
nameOrSlug?
string
Returns
void
selectCurrentPosition()
ts
selectCurrentPosition(
point,
focus,
icon?): void;Parameters
point
focus
boolean
icon?
number
Returns
void
selectExhibitor()
ts
selectExhibitor(nameOrExternalId): void;Parameters
nameOrExternalId
string
Returns
void
selectRoute()
Call Signature
ts
selectRoute(from, to): void;Parameters
from
to
Returns
void
Call Signature
ts
selectRoute(waypoints): void;Parameters
waypoints
Returns
void
setBookmarks()
ts
setBookmarks(bookmarks): void;Parameters
bookmarks
object[]
Returns
void
setEntitiesBookmarks()
ts
setEntitiesBookmarks(bookmarks): void;Parameters
bookmarks
object[]
Returns
void
setEntitiesVisited()
ts
setEntitiesVisited(entities): void;Parameters
entities
object[]
Returns
void
setMarkers()
ts
setMarkers(markersData): void;Parameters
markersData
Returns
void
setVisibility()
ts
setVisibility(visibility): void;Parameters
visibility
Returns
void
switchView()
ts
switchView(): void;Returns
void
unstable_destroy()
ts
unstable_destroy(): void;Returns
void
updateLayerVisibility()
ts
updateLayerVisibility(layer, visible): void;Parameters
layer
string
visible
boolean
Returns
void
zoomIn()
ts
zoomIn(): void;Returns
void
zoomOut()
ts
zoomOut(): void;Returns
void