Options
All
  • Public
  • Public/Protected
  • All
Menu

Mappedin Web SDK - v4.0.7

Index

References

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

References

TFloatingLabel

Renames and exports FloatingLabel

Type aliases

CAMERA_EVENT_PAYLOAD

CAMERA_EVENT_PAYLOAD: { POSITION_CHANGED: { x: number; y: number }; ROTATION_CHANGED: number; TILT_CHANGED: number; USER_INTERACTION_END: void; USER_INTERACTION_START: void; ZOOM_CHANGED: number }

Type declaration

  • POSITION_CHANGED: { x: number; y: number }
    • x: number
    • y: number
  • ROTATION_CHANGED: number
  • TILT_CHANGED: number
  • USER_INTERACTION_END: void
  • USER_INTERACTION_START: void
  • ZOOM_CHANGED: number

E_BLUEDOT_EVENT_PAYLOAD

E_BLUEDOT_EVENT_PAYLOAD: { POSITION_UPDATE: TBlueDotPositionUpdate; STATE_CHANGE: TBlueDotStateChange }

Type declaration

E_SDK_EVENT_PAYLOAD

E_SDK_EVENT_PAYLOAD: { MAP_CHANGED: MappedinMap; NOTHING_CLICKED: undefined; POLYGON_CLICKED: MappedinPolygon; STATE_CHANGE: STATE }

Type declaration

TAnimatePositionOptions

TAnimatePositionOptions: { rotation?: number; tilt?: number; zoom?: number }

Type declaration

  • Optional rotation?: number
  • Optional tilt?: number
  • Optional zoom?: number

TBlueDotPositionUpdate

TBlueDotPositionUpdate: { bearing?: number; map?: MappedinMap; nearestNode?: MappedinNode; position?: TGeolocationObject }

Type declaration

  • Optional bearing?: number

    Current BlueDot bearing

  • Optional map?: MappedinMap

    What Map is Blue Dot on

  • Optional nearestNode?: MappedinNode

    The nearest Node to the BlueDot

  • Optional position?: TGeolocationObject

    Actual position of BlueDot (post smoothing, if smoothing is on)

TBlueDotStateChange

TBlueDotStateChange: { markerVisibility?: E_BLUEDOT_MARKER_STATE; message?: GeolocationPositionError | string; name: E_BLUEDOT_STATE; reason?: E_BLUEDOT_STATE_REASON }

Type declaration

  • Optional markerVisibility?: E_BLUEDOT_MARKER_STATE

    Visiblity State of the BlueDot marker

  • Optional message?: GeolocationPositionError | string

    Additional message to complement the reason

  • name: E_BLUEDOT_STATE

    What we currently know about the user's position, and how confident we are.

  • Optional reason?: E_BLUEDOT_STATE_REASON

    Reason why BlueDot may be in the current state

TCameraAnimationOptions

TCameraAnimationOptions: { duration?: number; easing?: CAMERA_EASING_MODE }

Type declaration

TCommonLabelOptions

TCommonLabelOptions: { map?: MappedinMap | string; shortText?: string; text: string }

Type declaration

  • Optional map?: MappedinMap | string

    If Polygon is not set, this will let you add a TextLabel to another Map. Otherwise, it will use the currentMap

  • Optional shortText?: string

    The short name text to use for the label.

  • text: string

    The full name text to use for the label.

TConnectionProps

TConnectionProps: { direction?: string; icon?: string; isEntering?: boolean; toMapName?: string; type: any }

Type declaration

  • Optional direction?: string

    Direction "up" or "down"

  • Optional icon?: string
  • Optional isEntering?: boolean
  • Optional toMapName?: string
  • type: any

    Connection type, "escalator", "elevator", etc

TConnectionTemplateFn

TConnectionTemplateFn: ({direction,type,toMapName}: TConnectionProps) => string

Type declaration

TCreateCustomInnerHTMLTooltipOptions

TCreateCustomInnerHTMLTooltipOptions: TCreateTooltipCommonOptions & { contentHtml: string; padding?: number }

TCreateCustomTooltipOptions

TCreateCustomTooltipOptions: TCreateTooltipCommonOptions & { html: string; selector: string }

TCreateMarkerOptions

TCreateMarkerOptions: { anchor?: MARKER_ANCHOR; rank?: COLLISION_RANKING_TIERS | number }

Type declaration

TCreateTextTooltipOptions

TCreateTextTooltipOptions: TCreateTooltipCommonOptions & { padding?: number; text: string }

TCreateThreeDMarkerOptions

TCreateThreeDMarkerOptions: { mapOrMapId: MappedinMap | MappedinMap["id"]; object: Object3D; position?: Vector3; rotation?: Euler; scale?: Vector3 }

Type declaration

  • mapOrMapId: MappedinMap | MappedinMap["id"]

    map to add the marker to

  • object: Object3D

    the marker object to add to the scene

  • Optional position?: Vector3

    if provided, sets the object's position on the map

  • Optional rotation?: Euler

    if provided, sets the object's rotation relative to the map

  • Optional scale?: Vector3

    if provided, sets the object's scale relative to the map

TCreateTooltipCommonOptions

TCreateTooltipCommonOptions: { collisionRank?: COLLISION_RANKING_TIERS; defaultAnchorType?: keyof TOOLTIP_ANCHOR; enabledAnchorTypes?: TOOLTIP_ANCHOR }

Type declaration

  • Optional collisionRank?: COLLISION_RANKING_TIERS

    The rank of the object used when comparing colliders to determine which should be shown.

  • Optional defaultAnchorType?: keyof TOOLTIP_ANCHOR

    Default (starting) anchor for tooltips

  • Optional enabledAnchorTypes?: TOOLTIP_ANCHOR

    An object used to disable certain anchor positions from being used.

TEnableBlueDotOptions

TEnableBlueDotOptions: { allowImplicitFloorLevel?: boolean; baseColor?: number | string; positionUpdater?: IPositionUpdater; showBearing?: boolean; smoothing?: boolean; useRotationMode?: boolean }

Type declaration

  • Optional allowImplicitFloorLevel?: boolean

    For venues that do not provide level updates, assume the user is always on the default map If this is false, and no level information is found from position updates, blueDotUpdate events will not include the nearest node This should probably be set true for single floor venues that have no level information in position updates

    defaultvalue

    false

  • Optional baseColor?: number | string

    Override the default color of the Blue Dot. We interpolate other colors, (such as aura and bearing) from this base color

    defaultvalue

    0x2266ff

  • Optional positionUpdater?: IPositionUpdater

    Custom positionUpdater

    defaultvalue

    undefined

  • Optional showBearing?: boolean

    Show Bearing

    defaultvalue

    false

  • Optional smoothing?: boolean

    Smooth incoming position updates. Set to false if smoothing happens outside the SDK

    defaultvalue

    true

  • Optional useRotationMode?: boolean

    Whether to use the rotated view while following the user's position.

    defaultvalue

    false

TFlatLabelAppearance

TFlatLabelAppearance: { color?: string; font?: string; fontSize?: number; height?: number; margin?: number; scaleMin?: number; scaleStep?: number }

Type declaration

  • Optional color?: string

    A optional color

  • Optional font?: string

    A CSS style string font. ie "sans-serif". You can specify your own font via @font-face rule with a font family, and then include that here.

  • Optional fontSize?: number

    How big to make the font. Defaults to 12

    default

    12

  • Optional height?: number

    By default this is the upper bounds of the Polygon. If you don't have a Polygon, or want a custom height for some reason, you can set this.

  • Optional margin?: number

    The amount of space to leave before starting the text

    default

    5

  • Optional scaleMin?: number

    The minimum percentage we can shrink the label to if it won't fit within the bounds at 100%. If it doesn't fit at that level, it won't be created.

    default

    0.25

  • Optional scaleStep?: number

    How much to decrement the scale each time it doesn't fit, so we don't end up with too many different font sizes on screen at once. If * you are only labeling a few Polygons rather than everything, you can set this and and scaleMin to 0.1 to fit everything except really long names perfectly.

    default

    0.25

TFlatLabelOptions

TFlatLabelOptions: TCommonLabelOptions & { canvasBounds?: { align: "left" | "right" | "center"; height: number; width: number; x: number; y: number }; flatLabels: true }

TFlatLabelPolygonOptions

TFlatLabelPolygonOptions: TCommonLabelOptions & { appearance?: TFlatLabelAppearance; flatLabels?: true }

TFloatingLabelAppearance

TFloatingLabelAppearance: { margin?: number; marker?: { backgroundColor?: { active?: string; inactive?: string }; foregroundColor?: { active?: string; inactive?: string }; size?: number }; text?: { backgroundColor?: string; foregroundColor?: string; lineHeight?: number; maxWidth?: number; numLines?: number; size?: number } }

Type declaration

  • Optional margin?: number

    Margin around the label and marker. This will affect label density

  • Optional marker?: { backgroundColor?: { active?: string; inactive?: string }; foregroundColor?: { active?: string; inactive?: string }; size?: number }
    • Optional backgroundColor?: { active?: string; inactive?: string }
      • Optional active?: string

        Background color of the marker when it is active

      • Optional inactive?: string

        Background color of the marker when it is inactive (grayed out due to being outranked by other labels around)

    • Optional foregroundColor?: { active?: string; inactive?: string }
      • Optional active?: string

        Foreground color of the marker when it is active

      • Optional inactive?: string

        Foreground color of the marker when it is inactive (grayed out due to being outranked by other labels around)

    • Optional size?: number

      Size of the marker in pixels

  • Optional text?: { backgroundColor?: string; foregroundColor?: string; lineHeight?: number; maxWidth?: number; numLines?: number; size?: number }
    • Optional backgroundColor?: string

      Text background color

    • Optional foregroundColor?: string

      Text foreground color

    • Optional lineHeight?: number

      Line height sets the height of a line box. It's commonly used to set the distance between lines of text

      default

      1.2

    • Optional maxWidth?: number

      Maxiumum width of text in pixels

    • Optional numLines?: number

      Number of lines to display when text spans multiple lines

    • Optional size?: number

      Text size in pixels

TFloatingLabelPolygonOptions

TFloatingLabelPolygonOptions: TCommonLabelOptions & { appearance?: TFloatingLabelAppearance; flatLabels?: false; rank?: COLLISION_RANKING_TIERS | number; scale?: number }

TFocusOnCameraOptions

TFocusOnCameraOptions: { changeZoom?: boolean; minZoom?: number; rotation?: number; safeAreaInsets?: TSafeAreaInsets; tilt?: number }

Type declaration

  • Optional changeZoom?: boolean
  • Optional minZoom?: number
  • Optional rotation?: number
  • Optional safeAreaInsets?: TSafeAreaInsets
  • Optional tilt?: number

TFocusOnOptions

TFocusOnOptions: { animationOptions?: TCameraAnimationOptions; cameraOptions?: TFocusOnCameraOptions; targets?: TFocusOnTargets }

Type declaration

TFocusOnTargets

TFocusOnTargets: { coordinates?: MappedinCoordinate[]; nodes?: MappedinNode[]; points?: Vector3[]; polygons?: MappedinPolygon[] }

Type declaration

TGeolocationObject

TGeolocationObject: { coords: { accuracy: number; floorLevel?: number; latitude: number; longitude: number }; positionIndex?: number; timestamp: number; type?: GEOLOCATION_STATUS }

An extension of the GeolocationPosition type. https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition

Type declaration

  • coords: { accuracy: number; floorLevel?: number; latitude: number; longitude: number }
    • accuracy: number
    • Optional floorLevel?: number
    • latitude: number
    • longitude: number
  • Optional positionIndex?: number
  • timestamp: number
  • Optional type?: GEOLOCATION_STATUS

TGetVenueOptions

TGetVenueOptions: { accessToken?: string; baseUrl?: string; clientId?: string; clientSecret?: string; headers?: {[ key in string]: string }; includeHidden?: boolean; language?: string; noAuth?: boolean; perspective?: string; things?: any; venue: string }

Type declaration

  • Optional accessToken?: string
  • Optional baseUrl?: string
  • Optional clientId?: string
  • Optional clientSecret?: string
  • Optional headers?: {[ key in string]: string }
  • Optional includeHidden?: boolean
  • Optional language?: string
  • Optional noAuth?: boolean
  • Optional perspective?: string
  • Optional things?: any
  • venue: string

TJourneyOptions

TJourneyOptions: { connectionTemplate?: TConnectionTemplateFn; departureMarkerTemplate?: TMarkerTemplateFn; destinationMarkerTemplate?: TMarkerTemplateFn; inactivePathOptions?: TPathOptions; pathOptions?: TPathOptions; polygonHighlightColor?: string | false }

Type declaration

  • Optional connectionTemplate?: TConnectionTemplateFn

    Function that returns an HTML template to use as a connection tooltips (elevators, escalators, etc)

  • Optional departureMarkerTemplate?: TMarkerTemplateFn

    Function that returns an HTML template to use as a departure marker. Override with null | undefined to disable

  • Optional destinationMarkerTemplate?: TMarkerTemplateFn

    Function that returns an HTML template to use as a destination marker. Override with null | undefined to disable

  • Optional inactivePathOptions?: TPathOptions

    Path Options for the non-current path in multi-destination mode.

  • Optional pathOptions?: TPathOptions

    Path Options

  • Optional polygonHighlightColor?: string | false

    What color to highlight departure and destination polygons Pass false to disable

    default

    #0xff834c

TLabelAllLocationCommonOptions

TLabelAllLocationCommonOptions: { createDespiteImage?: boolean; excludeTypes?: string[]; locations?: MappedinLocation[]; translationMap?: {[ key in string]: string }; sortFunction?: any }

Type declaration

  • Optional createDespiteImage?: boolean

    Display label despite the polygon having an image on it

    default

    false

  • Optional excludeTypes?: string[]

    Exclude specific location types from labeling

  • Optional locations?: MappedinLocation[]

    Locations to label - otherwise, use current venue object

  • Optional translationMap?: {[ key in string]: string }

    Custom Translation Map for {@link MappedinLocation.MappedinLocationState}

  • sortFunction: function

TLabelAllLocationFlatLabelOptions

TLabelAllLocationFlatLabelOptions: TLabelAllLocationCommonOptions & { appearance?: TFlatLabelAppearance; flatLabels: true }

TLabelAllLocationFloatingLabelOptions

TLabelAllLocationFloatingLabelOptions: TLabelAllLocationCommonOptions & { appearance?: TFloatingLabelAppearance; flatLabels?: false }

TMapViewOptions

TMapViewOptions: { alpha?: boolean; antialias?: boolean; backgroundAlpha?: number; backgroundColor?: number | string; disableHover?: boolean; disableZoomOnMapSizeChange?: boolean; firstMap?: MappedinMap | string; loadOptions?: { async?: boolean; zoomOverrides?: { blueDotFollowingZoomFactor?: number; focusZoomFactorPolygon?: number; zoomMultiplier?: number } }; multiBufferRendering?: boolean; onWebGLContextCreationError?: any; onWebGLContextLost?: any; onWebGLContextRestored?: any; onWebGLRendererError?: any }

Type declaration

  • Optional alpha?: boolean

    True if the opacity argument to setBackgroundColor should be considered.

    default

    true

  • Optional antialias?: boolean

    Controls whether antialiasing is on. Defaults to true, as long as devicePixelRatio is 1. This is very expensive on high resolution screens.

    default

    true

  • Optional backgroundAlpha?: number

    The opacity of the initial background color.

  • Optional backgroundColor?: number | string
  • Optional disableHover?: boolean
  • Optional disableZoomOnMapSizeChange?: boolean
  • Optional firstMap?: MappedinMap | string

    What map should the SDK initialize to?

  • Optional loadOptions?: { async?: boolean; zoomOverrides?: { blueDotFollowingZoomFactor?: number; focusZoomFactorPolygon?: number; zoomMultiplier?: number } }
    • Optional async?: boolean
    • Optional zoomOverrides?: { blueDotFollowingZoomFactor?: number; focusZoomFactorPolygon?: number; zoomMultiplier?: number }
      • Optional blueDotFollowingZoomFactor?: number
      • Optional focusZoomFactorPolygon?: number
      • Optional zoomMultiplier?: number
  • Optional multiBufferRendering?: boolean

    Multi-buffer rendering should improve performance but may cause issues on older GPUs/browsers

    default

    true

  • onWebGLContextCreationError: function
    • onWebGLContextCreationError(): void
    • Returns void

  • onWebGLContextLost: function
    • onWebGLContextLost(): void
    • Returns void

  • onWebGLContextRestored: function
    • onWebGLContextRestored(): void
    • Returns void

  • onWebGLRendererError: function
    • onWebGLRendererError(): void
    • Returns void

TMapViewOptionsLegacy

TMapViewOptionsLegacy: { alpha?: boolean; antialias?: boolean; backgroundAlpha?: number; backgroundColor?: number | string; disableHover?: boolean; disableZoomOnMapSizeChange?: boolean; firstMap?: MappedinMap | string; loadOptions?: { mode?: "json" | "obj"; zoomOverrides?: { focusZoomFactorPolygon: unknown; zoomMultiplier: unknown } }; markerWorldIslandSplit?: boolean; multiBufferRendering?: boolean; onDataLoaded?: any; onFirstMapLoaded?: any; onWebGLContextCreationError?: any; onWebGLContextLost?: any; onWebGLContextRestored?: any; onWebGLRendererError?: any }

Type declaration

  • Optional alpha?: boolean

    True if the opacity argument to setBackgroundColor should be considered.

    default

    true

  • Optional antialias?: boolean

    Controls whether antialiasing is on. Defaults to true, as long as devicePixelRatio is 1. This is very expensive on high resolution screens.

    default

    true

  • Optional backgroundAlpha?: number

    The opacity of the initial background color.

  • Optional backgroundColor?: number | string
  • Optional disableHover?: boolean

    If you would like to completely disable the hover effect (if you are on a touch screen for example), set this to true.

    default

    false;

  • Optional disableZoomOnMapSizeChange?: boolean
  • Optional firstMap?: MappedinMap | string

    What map should the SDK initialize to?

  • Optional loadOptions?: { mode?: "json" | "obj"; zoomOverrides?: { focusZoomFactorPolygon: unknown; zoomMultiplier: unknown } }
    • Optional mode?: "json" | "obj"
    • Optional zoomOverrides?: { focusZoomFactorPolygon: unknown; zoomMultiplier: unknown }
      • focusZoomFactorPolygon: unknown
      • zoomMultiplier: unknown
  • Optional markerWorldIslandSplit?: boolean
  • Optional multiBufferRendering?: boolean
    beta
  • onDataLoaded: function
    • A callback executed with the 3D files have been downloaded for the first Map, and are starting to load into memory. The MapView is fully functional at this point, but some things will still be popping in.

      Parameters

      Returns void

  • onFirstMapLoaded: function
    • onFirstMapLoaded(venue?: Mappedin): void
    • A callback executed when the first map is fully loaded. This means onDataLoaded has already been fired (if specified) and then all the textures and other resources have finished popping in.

      Parameters

      Returns void

  • onWebGLContextCreationError: function
    • onWebGLContextCreationError(): void
    • Returns void

  • onWebGLContextLost: function
    • onWebGLContextLost(): void
    • Returns void

  • onWebGLContextRestored: function
    • onWebGLContextRestored(): void
    • Returns void

  • onWebGLRendererError: function
    • onWebGLRendererError(): void
    • Returns void

TMappedinDirective

TMappedinDirective: { action?: IAction; atLocation?: MappedinVortex; distance: number; instruction: string; node: MappedinNode; type?: BEARING_TYPE }

this is the "overloaded" version of the directive, with get-venue classes instead of stubs

Type declaration

  • Optional action?: IAction
  • Optional atLocation?: MappedinVortex
  • distance: number

    Distance from the last instruction to the current. Useful for turn by turn navigation

  • instruction: string
  • node: MappedinNode
  • Optional type?: BEARING_TYPE

TMappedinInitializeOptions

TMappedinInitializeOptions: { mapView?: TMapViewOptions; venue: _TGetVenueOptions | _TGetVenueBundleOptions; firstMapSelector?: any }

Type declaration

TMappedinInitializeOutput

TMappedinInitializeOutput: { mapView: MapView; venue: Mappedin }

Type declaration

TMarkerTemplateFn

TMarkerTemplateFn: ({icon: string,location: MappedinLocation}: TMarkerTemplateProps) => string

Type declaration

TMarkerTemplateProps

TMarkerTemplateProps: { icon: string; location?: MappedinLocation }

Type declaration

TPadding

TPadding: { bottom: number; left: number; right: number; top: number }

Type declaration

  • bottom: number
  • left: number
  • right: number
  • top: number

TPathOptions

TPathOptions: { animateDrawing?: boolean; color?: number | string; displayArrowsOnPath?: boolean; drawDuration?: number; farRadius?: number; farZoom?: number; flattenPath?: boolean; nearRadius?: number; nearZoom?: number; pulseColor?: string; pulseIterations?: number; pulsePauseDuration?: number; radius?: number; showPulse?: boolean }

Type declaration

  • Optional animateDrawing?: boolean

    Animate the drawing of the path in the direction of travel.

    defaultvalue

    true

  • Optional color?: number | string

    Path Colour

    defaultvalue

    #00b800

  • Optional displayArrowsOnPath?: boolean

    Show arrows on path

    defaultvalue

    true

  • Optional drawDuration?: number

    Duration of path drawing

    defaultvalue

    1500

  • Optional farRadius?: number

    Radius of path at furthest zoom, in metres

    defaultvalue

    2.3 times nearRadius

  • Optional farZoom?: number

    Zoom level where the path size is farRadiustions.nearRadius

    defaultvalue

    10000

  • Optional flattenPath?: boolean

    Flatten the path to a 2D line

    defaultvalue

    false

  • Optional nearRadius?: number

    Radius of path at nearest zoom, in metres

    defaultvalue

    1.8

  • Optional nearZoom?: number

    Zoom level where the path size is nearRadius

    defaultvalue

    375

  • Optional pulseColor?: string

    Colour of path pulse

    defaultvalue

    0xffffff

  • Optional pulseIterations?: number

    Number of iterations to pulse to indicate direction

    defaultvalue

    Infinity

  • Optional pulsePauseDuration?: number

    How many milliseconds to wait before starting the next pulse after the current pulse travels the entirety of the path

    defaultvalue

    750

  • Optional radius?: number

    (Deprecated) alias for nearRadiusty

    defaultvalue

    1.8

    deprecated
  • Optional showPulse?: boolean

    Show an animated pulse indicating the direction of travel.

    defaultvalue

    true

TSafeAreaInsets

TSafeAreaInsets: { bottom: number; left: number; right: number; top: number; type?: SAFE_AREA_INSET_TYPE }

Type declaration

TShowVenueOptions

TShowVenueOptions: { backgroundAlpha?: number; backgroundColor?: string; firstMapId?: string; labelAllLocationsOnInit?: boolean }

Type declaration

  • Optional backgroundAlpha?: number

    The opacity of the initial background color.

  • Optional backgroundColor?: string

    Sets the initial background color of the map, including while loading.

  • Optional firstMapId?: string

    The id of the first map to show on map load

  • Optional labelAllLocationsOnInit?: boolean

    Whether or not to display labels initially

changeListenerFn

changeListenerFn<PAYLOAD>: (update: PAYLOAD) => void

Type parameters

  • PAYLOAD

Type declaration

    • (update: PAYLOAD): void
    • Parameters

      • update: PAYLOAD

      Returns void

Variables

Const ANIMATION_TWEENS

ANIMATION_TWEENS: { ease-in: any; ease-in-out: any; ease-out: any; linear: any } = ...

Type declaration

  • ease-in: any
  • ease-in-out: any
  • ease-out: any
  • linear: any

Analytics

Analytics: any = ...

A class to access the Mappedin Analytics platform. Correct usage will improve Smart Search results, and lead to more accurate insights. This will be created for you as part of Mappedin.{{#crossLink "Mappedin/initialize:method"}}{{/crossLink}}, but you can also create one manually. You are mostly going to use locationSelected.

param

A list of configuration options for the Analytics API.

param

The same key you are using for getVenue. Handled automatically in Mapview.initialize()

param

The same secret you are using for getVenue. Handled automatically in Mapview.initialize()

param

The same venue slug you are using for getVenue. Handled automatically in MapView.initialize()

Let Search

Search: any = ...

A class to access the Mappedin Search API. This will be created for you as part of Mappedin.{{#crossLink "Mappedin/initailize:method"}}{{/crossLink}}, but you can also create one manually.

param

A list of configuration options for the search API.

param

The venue slug to search for

param

Your search key

param

Your search secret

param

Whether the new Smart Search should be used.

param

The endpoint for search.

param

Array of MappedinLocations for this venue. This is optional, but will enable fallback search.

param

Array of MappedinCategorys for this venue. This is optional, but will enable fallback search.

Const labelThemes

labelThemes: { darkOnLight: { margin: number; marker: { backgroundColor: { active: string; inactive: undefined }; foregroundColor: { active: string; inactive: undefined }; size: number }; text: { backgroundColor: string; foregroundColor: string; lineHeight: number; maxWidth: number; numLines: number; size: number } }; lightOnDark: { margin: number; marker: { backgroundColor: { active: string; inactive: undefined }; foregroundColor: { active: string; inactive: undefined }; size: number }; text: { backgroundColor: string; foregroundColor: string; lineHeight: number; maxWidth: number; numLines: number; size: number } } } = ...

Type declaration

  • darkOnLight: { margin: number; marker: { backgroundColor: { active: string; inactive: undefined }; foregroundColor: { active: string; inactive: undefined }; size: number }; text: { backgroundColor: string; foregroundColor: string; lineHeight: number; maxWidth: number; numLines: number; size: number } }
    • margin: number
    • marker: { backgroundColor: { active: string; inactive: undefined }; foregroundColor: { active: string; inactive: undefined }; size: number }
      • backgroundColor: { active: string; inactive: undefined }
        • active: string
        • inactive: undefined
      • foregroundColor: { active: string; inactive: undefined }
        • active: string
        • inactive: undefined
      • size: number
    • text: { backgroundColor: string; foregroundColor: string; lineHeight: number; maxWidth: number; numLines: number; size: number }
      • backgroundColor: string
      • foregroundColor: string
      • lineHeight: number
      • maxWidth: number
      • numLines: number
      • size: number
  • lightOnDark: { margin: number; marker: { backgroundColor: { active: string; inactive: undefined }; foregroundColor: { active: string; inactive: undefined }; size: number }; text: { backgroundColor: string; foregroundColor: string; lineHeight: number; maxWidth: number; numLines: number; size: number } }
    • margin: number
    • marker: { backgroundColor: { active: string; inactive: undefined }; foregroundColor: { active: string; inactive: undefined }; size: number }
      • backgroundColor: { active: string; inactive: undefined }
        • active: string
        • inactive: undefined
      • foregroundColor: { active: string; inactive: undefined }
        • active: string
        • inactive: undefined
      • size: number
    • text: { backgroundColor: string; foregroundColor: string; lineHeight: number; maxWidth: number; numLines: number; size: number }
      • backgroundColor: string
      • foregroundColor: string
      • lineHeight: number
      • maxWidth: number
      • numLines: number
      • size: number

Functions

getVenue

getVenueBundle

  • getVenueBundle(userOptions: TGetVenueBundleOptions): Promise<Mappedin>
  • [experimental] Fetching an offline Venue bundle It is possible to download the venue bundle with all assets built in, which allows for caching/offline solutions. Note 1: This requires enabling from Mappedin's Customer Solutions team. Note 2: This may behave a lot slower for large venues, especially those with many images. We are actively working on improving load times.

    Parameters

    • userOptions: TGetVenueBundleOptions

    Returns Promise<Mappedin>

showVenue

  • Type parameters

    Parameters

    • el: HTMLElement

      HTML Element where the mapView should be placed

    • venue: T

      Venue Object returned by getVenue

    • Optional options: TMapViewOptions

      MapView Options

    Returns Promise<MapView>