Resolves popup template for store or layer.
Note that the source layer is required on a graphic (.layer
property) if domain values should be resolved,
even if a popup template is resolved from a store.
The popup template resolver returns the additional layer
property if the original layer could be found,
which will point to the layer where the feature originates from.
const { popupTemplate } = await resolver.resolvePopupTemplate({store: store});
const { popupTemplate } = await resolver.resolvePopupTemplate({storeId: "my-store"});
Resolves popup templates for layers or stores.
Use
popups.PopupTemplateResolver
as service name in yourmanifest.json
to get an PopupTemplateResolver instance.