GraphicsLayer graphicsLayer = this._map.Layers["CallsLayer"] as GraphicsLayer; if (graphicsLayer != null) { graphicsLayer.Graphics.Clear(); ESRI.ArcGIS.Client.Geometry.MapPoint point = new ESRI.ArcGIS.Client.Geometry.MapPoint(longitude, latitude); point.SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(4326); ESRI.ArcGIS.Client.Symbols.PictureMarkerSymbol ms = new ESRI.ArcGIS.Client.Symbols.PictureMarkerSymbol(); Graphic g = new Graphic(); g.Geometry = this.ConvertToMapCoordinates(point); ms.Source = imageSource; g.Attributes.Add("Name", name); g.Symbol = ms; g.Attributes.Add("Object", itemObject); graphicsLayer.Graphics.Add(g); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.