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
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
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
change POI Set
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
change POI Style
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
create POI Set
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.
create POI Style
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.
get POI Set Data
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
get POI Sets
ExperimentalExperimental. 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.
get POI Style Data
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
get POI Styles
ExperimentalExperimental. 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.
remove Points From Set
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
remove POI Set
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
remove POI Style
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: