brumm1dj

Popup has two titles

Discussion created by brumm1dj on Aug 1, 2012
Latest reply on Oct 25, 2012 by derekwaynemiller
I have a popup window that displays the title twice. I really want to use the title field but it looks really weird as is. I have tried pulling from an attribute field as well as inputting plain text for the title. Anyone have any ideas??
     


   
    var popup = new esri.dijit.Popup(null, dojo.create("div"));
 
    map = new esri.Map("map", {
        extent: initExtent,
        infoWindow:popup
    });



          //define a popup template
       popupTemplate = new esri.dijit.PopupTemplate({
          title: "INCIDENT",
          fieldInfos: [
          {fieldName: "DESCRIPTION",label:"DESCRIPTION", visible: true},
          {fieldName: "ADDRESS", label:"LOCATION", visible: true},
          {fieldName: "START_DATE", label:"DATE", visible:true ,format:{dateFormat:'shortDate'}}
          ]
        });


    featureLayer = new esri.layers.FeatureLayer("http://gis6.midland-mi.org/ArcGIS/rest/services/PublicSafety/MapServer/0", {
        mode: esri.layers.FeatureLayer.MODE_SELECTION,
        outFields:["*"],
        infoTemplate: popupTemplate
    });

Attachments

Outcomes