ViewerPointsOfInterestAPI¶
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)
- ViewerPointsOfInterestAPI
Methods
add Points To Set
- addPointsToSet(id: number, pois: PointOfInterest[]): number[]
ExperimentalExperimental. 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
- id: number
The ID of the POI set
- pois: PointOfInterest[]
The list of PointOfInterests to add.
Returns number[]
The IDs of the newly added POIs.
- id: number
change Points In Set
- changePointsInSet(
poiSetId: number,
poiIds: number[],
pois: PointOfInterest[],
): void ExperimentalExperimental. 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
- poiSetId: number
changePOISet
- changePOISet(id: number, properties: POISetProperties): POISetProperties
ExperimentalExperimental. May be changed in the future without notice.
Sets the properties for the POI set.
Triggers a ViewerPOISetChangedEvent event if the properties were changed.
Parameters
- id: number
The ID of the POI set to change.
- properties: POISetProperties
The new properties of the POI set.
Returns POISetProperties
- id: number
changePOIStyle
- changePOIStyle(
poiStyleId: number,
properties: POIStyleProperties,
): POIStyleProperties ExperimentalExperimental. May be changed in the future without notice.
Sets the properties for the POI style.
Triggers a ViewerPOIStyleChangedEvent event if the properties were changed.
Parameters
- poiStyleId: number
The ID of the POI style to change.
- properties: POIStyleProperties
The new properties of the POI style.
Returns POIStyleProperties
- poiStyleId: number
createPOISet
- createPOISet(properties?: POISetProperties): number
ExperimentalExperimental. May be changed in the future without notice.
Creates a new POI set.
Triggers a ViewerPOISetCreatedEvent event if the set was created successfully.
Parameters
Optionalproperties: POISetPropertiesInitial properties of the created POI set.
Returns number
The ID the newly created set.
createPOIStyle
- createPOIStyle(properties?: POIStyleProperties): number
ExperimentalExperimental. May be changed in the future without notice.
Creates a new POI style.
Triggers a ViewerPOIStyleCreatedEvent event if the style was created successfully.
Parameters
Optionalproperties: POIStylePropertiesInitial properties of the created POI style.
Returns number
The ID the newly created style.
getPOISet Data
- getPOISetData(id: number): POISetProperties
ExperimentalExperimental. 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.
- id: number
getPOISets
getPOIStyle Data
- getPOIStyleData(poiStyleId: number): POIStyleProperties
ExperimentalExperimental. 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.
- poiStyleId: number
getPOIStyles
remove Points From Set
- removePointsFromSet(id: number, poiIds: number[]): void
ExperimentalExperimental. 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
- id: number
removePOISet
- removePOISet(id: number): void
ExperimentalExperimental. 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
- id: number
removePOIStyle
- removePOIStyle(poiStyleId: number): void
ExperimentalExperimental. 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
- poiStyleId: number
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: