I am using ArcGis API for JavaScript 3.18 and I wanted to make a simple map with multiple points that display a short description when I click on them but I have issue with defining multiple points on one GraphicLayer, my code for one PictureMarkerSymbol:
map.on("load", function() {
var gl = new GraphicsLayer();
var p = new Point(19.466172, 51.774539);
var s = new PictureMarkerSymbol('hat.png', 32, 32);
var i = { Wydział: "Ekonomiczno-Socjologiczny", Adres: "Polskiej Organizacji Wojskowej 3/5, 90-255 Łódź", Telefon: "42 635 53 56"};
var it = new InfoTemplate("EK-SOC");
var g = new Graphic(p, s, i).setInfoTemplate(it);
gl.add(g);
map.addLayer(gl);
});
How I can add more points to the (gl) Layer? I have tried with addMany function but it seems that's only for the newer API (4.1)