AnsweredAssumed Answered

Applying HTML Markup or CSS rule to arrayUtils Attributes in InfoTemplate

Question asked by BEHSEINI on Sep 4, 2015
Latest reply on Sep 8, 2015 by Chen_Li-esristaff

Can you please let me know how I can apply Style or append HTML markup into infoTemplate like this

 

        var symbol = new PictureMarkerSymbol("img/direqyb6T.png", 32, 32);
        layer2 = new GraphicsLayer();
        var infoTemplate = new InfoTemplate("Project Details", "${*}");
        arrayUtils.forEach(points, function (project) {
            att = {
                    "Project Id": project.ProjectID,
                    "Longitude": project.Longitude,
                    "Latitude": project.Latitude
            };
            mp = new Point(project.Longitude, project.Latitude);
            var projGra = new Graphic(mp, symbol, att);
            layer2.add(projGra);
        });
        layer2.setInfoTemplate(infoTemplate);
        map.addLayer(layer2);

 

this code is generating a popup like below

attri.png

but I need to show the information in a HTML table or apply some css rules?

 

Thanks

Outcomes