I am trying to use symboldictionary to display images as may markers on the map. But no symbol appears on the map. Any Idea?
ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = mainDisplay1.ScreenToMap(screenPoint); ESRI.ArcGIS.Client.GraphicsLayer graphicsLayer = new ESRI.ArcGIS.Client.GraphicsLayer(); ESRI.ArcGIS.Client.Symbols.MarkerSymbol Symbol = new ESRI.ArcGIS.Client.Symbols.MarkerSymbol(); var pointGraphic = new ESRI.ArcGIS.Client.Graphic() { Geometry = mapPoint, Symbol = Symbol }; pointGraphic.Attributes.Add("MilitaryUnit", pointGraphic); SymbolDictionary SymbolDictionary = new SymbolDictionary(SymbolDictionaryType.Mil2525C); ImageSource src = SymbolDictionary.GetSymbolImage("SHGPIBA---H***A", 100, 100); pointGraphic.Attributes.Add("Symbol", src); graphicsLayer.Graphics.Add(pointGraphic); mainDisplay1.Layers.Add(graphicsLayer);
أكثر...
ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = mainDisplay1.ScreenToMap(screenPoint); ESRI.ArcGIS.Client.GraphicsLayer graphicsLayer = new ESRI.ArcGIS.Client.GraphicsLayer(); ESRI.ArcGIS.Client.Symbols.MarkerSymbol Symbol = new ESRI.ArcGIS.Client.Symbols.MarkerSymbol(); var pointGraphic = new ESRI.ArcGIS.Client.Graphic() { Geometry = mapPoint, Symbol = Symbol }; pointGraphic.Attributes.Add("MilitaryUnit", pointGraphic); SymbolDictionary SymbolDictionary = new SymbolDictionary(SymbolDictionaryType.Mil2525C); ImageSource src = SymbolDictionary.GetSymbolImage("SHGPIBA---H***A", 100, 100); pointGraphic.Attributes.Add("Symbol", src); graphicsLayer.Graphics.Add(pointGraphic); mainDisplay1.Layers.Add(graphicsLayer);
أكثر...