地图上添加图例
ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic()
{
Geometry = objgraphic.Geometry,
Symbol = dd1.LayoutRoot.Resources["SelectedPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol
};
MyGraphicsLayer.Graphics.Add(graphic);
//SilverlightMap.UserControls.MonitorPoint dd1 = new MonitorPoint();
//objDelgraphic.Symbol = dd1.LayoutRoot.Resources["SelectedPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol;
objgraphic.Selected = true;
gralayer.Graphics.Remove(objgraphic);
//GraphicsLayer gralayer = objCurrentMap.Layers["FEATURELAYERMONITOR"] as GraphicsLayer;
//gralayer.Refresh();
ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic()
{
Geometry = objgraphic.Geometry,
Symbol = dd1.LayoutRoot.Resources["SelectedPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol
};
MyGraphicsLayer.Graphics.Add(graphic);
//SilverlightMap.UserControls.MonitorPoint dd1 = new MonitorPoint();
//objDelgraphic.Symbol = dd1.LayoutRoot.Resources["SelectedPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol;
objgraphic.Selected = true;
gralayer.Graphics.Remove(objgraphic);
//GraphicsLayer gralayer = objCurrentMap.Layers["FEATURELAYERMONITOR"] as GraphicsLayer;
//gralayer.Refresh();