shaharbsystematics-co-il-esridist

How to open popup window when map loaded?

Discussion created by shaharbsystematics-co-il-esridist Employee on Feb 25, 2012
Latest reply on Mar 4, 2012 by shaharbsystematics-co-il-esridist
for example i have only 1 point on the map with InfoTemplate set.
i want to open the popup when the map initialize and not when the the user click the point.

how can i invoke the action that open/shows the infoTemaplate??...



                        // Create the point with picture marker symbol
   var sym = new esri.symbol.PictureMarkerSymbol('http://files.softicons.com/download/toolbar-icons/vector-icon-set-1-by-bevelandemboss.net/png/48/pin.png', 50, 50);

   // set the coordinate
   var graphic =new esri.Graphic({"geometry":{"x":34.784763,"y":32.07707,"spatialReference":{"wkid":4326}}});

   // set the symbol
   graphic.setSymbol(sym);

   // Create the pop up for the symbol, (HTML Format)
   var infoTemplate = new esri.InfoTemplate();
    infoTemplate.setTitle("Test");
   infoTemplate.setContent("Body Test");
   graphic.setInfoTemplate(infoTemplate);
  
   // Add the graphic to the map
   map.graphics.add(graphic);


Thank you,
Shahar Bukra.

Outcomes