yanasdf789

how  add a infowindow when i create a graphic on the map

Discussion created by yanasdf789 on Jun 12, 2011
how  add a infowindow when i create a graphic on the map? i look at the example online
 djConfig = {
        parseOnLoad:true,
        baseUrl: "./",
        modulePaths: {
            "myModules": "./myModules"
        }
      };
//...../
dojo.require("myModules.customoperation");
//.../
undoManager = new esri.UndoManager();
 var geometry1=new esri.geometry.Point(260000, 6250000, new esri.SpatialReference({ wkid: 102100}));
  var symbol1=new esri.symbol.PictureMarkerSymbol('images/cc.png', 51, 51);
   var graphic1 = new esri.Graphic(geometry1, symbol1);
    undoManager = new esri.UndoManager();
         var operation = new myModules.customoperation.Add({
            graphicsLayer: map.graphics,
            addedGraphic: graphic1
          });
     undoManager.add(operation);
     map.graphics.add(graphic1);


but  how to a define a "myModules" in  djconfig,i can't get the code  when i using the online example

Outcomes