ViewerPointsOfInterestAPI

Interface ViewerPointsOfInterestAPI

This interface serves as control point for the creation, management and visualization state of an individual set of PointOfInterests for a viewer.

Currently supported features:

  • POI placement in world space
  • rendering as colored points
  • rendering as sprites
  • occlusion checking
  • POI set events, e.g. hover/click
  • custom style for visible/occluded/hovered POIs
  • POI size definition in screen or world space
interface ViewerPointsOfInterestAPI {
    addPointsToSet(id: number, pois: PointOfInterest[]): number[];
    changePointsInSet(
        poiSetId: number,
        poiIds: number[],
        pois: PointOfInterest[],
    ): void;
    changePOISet(id: number, properties: POISetProperties): POISetProperties;
    changePOIStyle(
        poiStyleId: number,
        properties: POIStyleProperties,
    ): POIStyleProperties;
    createPOISet(properties?: POISetProperties): number;
    createPOIStyle(properties?: POIStyleProperties): number;
    getPOISetData(id: number): POISetProperties;
    getPOISets(): number[];
    getPOIStyleData(poiStyleId: number): POIStyleProperties;
    getPOIStyles(): number[];
    removePointsFromSet(id: number, poiIds: number[]): void;
    removePOISet(id: number): void;
    removePOIStyle(poiStyleId: number): void;
}

Hierarchy (View Summary)

Methods

  • Experimental

    Experimental. May be changed in the future without notice.

    Adds points to an existing POI set.

    Triggers a ViewerPOISetPointsAddedEvent event if the points were added successfully.

    Parameters

    Returns number[]

    The IDs of the newly added POIs.

  • Experimental

    Experimental. May be changed in the future without notice.

    Changes points in an existing POI set.

    Triggers a ViewerPOISetPointsChangedEvent event if the points were changed successfully.

    Parameters

    • poiSetId: number

      The ID of the POI set

    • poiIds: number[]

      The IDs of the POIs to change.

    • pois: PointOfInterest[]

      The new PointOfInterest data. The length of this array must match the length of the poiIds array.

    Returns void

  • Experimental

    Experimental. May be changed in the future without notice.

    Creates a new POI set.

    Triggers a ViewerPOISetCreatedEvent event if the set was created successfully.

    Parameters

    Returns number

    The ID the newly created set.

  • Experimental

    Experimental. May be changed in the future without notice.

    Creates a new POI style.

    Triggers a ViewerPOIStyleCreatedEvent event if the style was created successfully.

    Parameters

    Returns number

    The ID the newly created style.

  • Experimental

    Experimental. May be changed in the future without notice.

    Queries the properties of a POI set.

    Parameters

    • id: number

      The ID of the POI set to query.

    Returns POISetProperties

    The properties of the queried POI set.

  • Experimental

    Experimental. May be changed in the future without notice.

    Returns the IDs of all existing POI sets.

    Returns number[]

    A number array representing the IDs of all POI sets.

  • Experimental

    Experimental. May be changed in the future without notice.

    Queries the properties of a POI style.

    Parameters

    • poiStyleId: number

      The ID of the POI style to query.

    Returns POIStyleProperties

    The properties of the queried POI style.

  • Experimental

    Experimental. May be changed in the future without notice.

    Returns the IDs of all existing POI styles.

    Returns number[]

    A number array representing the IDs of all POI styles.

  • Experimental

    Experimental. May be changed in the future without notice.

    Removes points from an existing POI set.

    Triggers a ViewerPOISetPointsRemovedEvent event if the points were removed successfully.

    Parameters

    • id: number

      The ID of the POI set

    • poiIds: number[]

      The IDs of the POIs to remove.

    Returns void

  • Experimental

    Experimental. May be changed in the future without notice.

    Removes the POI set with the given identifier.

    Triggers a ViewerPOISetRemovedEvent event if the set was removed successfully.

    Parameters

    • id: number

      The ID of the POI set to be removed.

    Returns void

  • Experimental

    Experimental. May be changed in the future without notice.

    Removes the POI style with the given identifier.

    Triggers a ViewerPOIStyleRemovedEvent event if the style was removed successfully.

    Parameters

    • poiStyleId: number

      The ID of the POI style to be removed.

    Returns void