AnsweredAssumed Answered

PopupTemplate title vanishing

Question asked by LawsonTyler on Mar 25, 2020
Latest reply on Mar 26, 2020 by EPolle_TensingInternational

I have been in the process of updating an application from 4.6 to 4.14 and have noticed something weird happening with my popup templates. Whenever I click on a feature, it opens the popup but the title briefly appears before vanishing. It doesn't seem to be related to the features, featureLayer, or renderer as I created test objects of each and it acts the same.


Picture of blank title:

 

Code for feature:
var testFeatures = [];
var feature = {
Id: "Test",
geometry: new Point({
x: -96.8107,
y: 33.1509
}),
attributes: {
Name: "Test",
ObjectID: 1
}
};
testFeatures.push(feature);

FeatureLayer:
var lyrTest = new FeatureLayer({
// create an instance of esri/layers/support/Field for each field object
fields: [
{
name: "ObjectID",
alias: "ObjectID",
type: "oid"
},
{
name: "Type",
alias: "Type",
type: "string"
} ,
{
name: "Name",
alias: "Name",
type: "string"
}
],
objectIdField: "ObjectID",
geometryType: "point",
spatialReference: { wkid: 4326 },
source: testFeatures,
labelsVisible: true,
renderer: testRenderer,
id: "TestLayer"
});
lyrTest.popupTemplate = templateTest;
map.add(lyrTest);

Renderer:
var testRenderer = {
type: "unique-value",
field: "Name",
uniqueValueInfos: [
{
value: "Test",
symbol: new SimpleMarkerSymbol({
color: "blue",
outline: {
color: "blue",
width: 1
}
}),
label: "Test"
}
]
};

 

PopupTemplate:
var templateTest = {
title: "Test Title",
outFields: ["*"],
content: "This is a test"
};

Any suggestions as to what could be going on would be appreciated.

Outcomes