Panorama Images Repository
  • 26 Feb 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Panorama Images Repository

  • Dark
    Light
  • PDF

Article summary

Follow these steps to get panorama image metadata that is within a particular room and that is set to be hidden:

  1. Run:

    const room = await api.siteModel.repository.findOne(23); // arbitrary site model
  2. Run:

    const imgFilterBuilder: ImageFilterInterface = api.image.repository.createFilterBuilder();
          imgFilterBuilder.siteModel(room);
          imgFilterBuilder.hidden(true);
    
    const imgFilter: RestFilterInterface = imgFilterBuilder.build();
  3. Run:

    api.image.repository.filter(imgFilter)
      .then((hiddenRoomImages: ImageInterface[]) => {
        // Perform actions on hidden panoramas located in a room
      });


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.