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

329
0
06-12-2011 08:13 PM
yanli
by
New Contributor II
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
0 Kudos
0 Replies