NAV
json

Hotspot Annotations

Hotspot Annotations allow you to add interactive elements to your publications during at the import time, such as links, images, videos, and product information. They enhance the user experience by providing additional context and interactivity within your digital publications.

Currently, Publitas supports the following types of hotspot annotations:

The type of the hotspot annotation is determined by the required type attribute in the annotation's JSON data.

Product Annotations

Product Annotations allow you to link specific products from your product catalog to designated areas within your publication. This is particularly useful for creating interactive catalogs where users can click on products to view more details or make a purchase.

Supported Attributes

{
  "type": "product",
  "icon": true,
  "sku": "1234",
  "dynamic": false
}

Image Annotations

Image Annotations allow you to add images that can be displayed when users view the publication. This is useful for adding visual elements that enhance the content of your publication.

Supported Attributes

{
  "type": "image",
  "icon": true,
  "source": "https://example.com/image.jpg",
  "appearance": "embed",
  "altText": true,
  "altTextValue": "An example image",
  "fillMode": "stretch"
}

Video Annotations

Video Annotations allow you to embed videos that can be played directly within the publication. This is useful for adding multimedia content that enhances the user experience.

Supported Attributes

{
  "type": "video",
  "icon": true,
  "source": "https://example.com/video.mp4",
  "appearance": "embed",
  "showThumbnail": true,
  "autoplay": false,
  "loop": false,
  "showAccessibilityControls": true,
  "accessibilityText": "An example video"
}

External Content Annotations

External Content Annotations allow you to link to external web content, such as web pages or other online resources. This is useful for providing additional context or information that is not contained within the publication itself.

Supported Attributes

{
  "type": "externalContent",
  "icon": true,
  "source": "https://example.com",
  "maxWidth": 800,
  "maxHeight": 600
}