Class StackedMapsExperimental

Hierarchy (view full)

Properties

expandedFactor: number = 0

The factor of the expanded floor stack. 0 is collapsed, 1 is fully expanded.

Accessors

  • get expanded(): boolean
  • Experimental

    Whether the floor stack is expanded.

    Returns boolean

  • get floorVisibilityMode(): "all-floors" | "only-current-floor"
  • Experimental

    The visibility mode for the stacked maps. 'all-floors' will show all floors, 'only-current-floor' will only show the current floor in the stack.

    Returns "all-floors" | "only-current-floor"

    'all-floors'
    
  • get gapBelowFloors(): number
  • Experimental

    The distance between floors in the stack in meters.

    Returns number

  • get includedFloors(): Floor[]
  • Experimental

    The floors included in the stack.

    Returns Floor[]

Methods

  • Experimental

    Set whether to listen to camera elevation changes to automatically change the floor.

    Parameters

    • value: boolean

    Returns void

  • Experimental

    Collapse the floor stack.

    Parameters

    Returns Promise<void>

  • Experimental

    Expand the floor stack.

    Parameters

    Returns Promise<void>

  • Experimental

    Unsubscribe a function previously subscribed with on

    Type Parameters

    • EVENT_NAME extends "stacked-maps-state-change"

    Parameters

    Returns void

    // Unsubscribe from the 'click' event
    const handler = (event) => {
    console.log('Map was clicked', event);
    };
    map.off('click', handler);
  • Experimental

    Subscribe a function to an event.

    Type Parameters

    • EVENT_NAME extends "stacked-maps-state-change"

    Parameters

    Returns void

    // 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);
  • Experimental

    Set the visibility mode for the stacked maps.

    Parameters

    • mode: "all-floors" | "only-current-floor"

      The visibility mode to set. Either all-floors or only-current-floor.

    Returns void