Types
import type { Templates, Template } from "@arcgis/core/smartMapping/popup/types.js";

Type definitions

Templates

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The return object of the getTemplates() method.

primaryTemplate

Property
Type
Template
Since
ArcGIS Maps SDK for JavaScript 5.0

Includes the primary PopupTemplate suggested for the input layer.

secondaryTemplates

Property
Type
Template[]
Since
ArcGIS Maps SDK for JavaScript 5.0

Includes secondary PopupTemplates that may be applied to the input layer.

Template

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Defines a suggested PopupTemplate with a given name and title describing the content and purpose of the PopupTemplate.

name

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The name of the auto-generated PopupTemplate. This can be used in the UI of web map authoring apps.

title

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The title of the PopupTemplate.

value

Property
Type
PopupTemplate
Since
ArcGIS Maps SDK for JavaScript 5.0

The suggested PopupTemplate.