How to add custom image on graphicLayer

ct Re: How to add custom image on graphicLayer 
Author Roger Federer 
Date Oct 30, 2008 
Message Thanks mike

Got the solution. 
  ESRI.ArcGIS.ADF.Web.Display.Symbol.RasterMarkerSymbol rms = new ESRI.ArcGIS.ADF.Web.Display.Symbol.RasterMarkerSymbol();
rms.ImageFormat = ImageFormat.PNG24;
rms.Image = new CartoImage("images\1.png");

glayer = new ESRI.ArcGIS.ADF.Web.Display.Graphics.FeatureGraphicsLayer();
glayer.TableName = "FeaturePoint";
gResource.Graphics.Tables.Add(glayer);
ESRI.ArcGIS.ADF.Web.Display.Renderer.SimpleRenderer sr =
new ESRI.ArcGIS.ADF.Web.Display.Renderer.SimpleRenderer(rms);

glayer.Renderer = sr;
glayer.Add(point);

你可能感兴趣的:(Web)