Beispiel #1
0
        private async void AddCollectionPoint(MapPoint point)
        {
            var guid = await AddGraphicToMap(point, ColorFactory.Instance.RedRGB, true, 7);

            var addInPoint = new AddInPoint()
            {
                Point = point, GUID = guid
            };

            //Add point to the top of the list
            CoordinateAddInPoints.Insert(0, addInPoint);
        }
        private void AddCollectionPoint(IPoint point)
        {
            if (!point.IsEmpty && point != null)
            {
                var color = new RgbColorClass()
                {
                    Red = 255
                } as IColor;
                var guid       = ArcMapHelpers.AddGraphicToMap(point, color, true, esriSimpleMarkerStyle.esriSMSCircle, 7);
                var addInPoint = new AddInPoint()
                {
                    Point = point, GUID = guid
                };

                //Add point to the top of the list
                CoordinateAddInPoints.Insert(0, addInPoint);

                GraphicsList.Add(new AMGraphic(guid, point, true));
            }
        }