Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #300 from CTLocalGovTeam/dev
Browse files Browse the repository at this point in the history
Delivery for Visibility Addin DotNet – Sprint 3(Updates)
  • Loading branch information
Lyle Wright authored Aug 9, 2018
2 parents 9d616fa + f4dcd21 commit f4e390f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ internal override async Task CreateMapElement()
}

DeactivateTool(VisibilityMapTool.ToolId);
OnMapPointToolDeactivated(null);

GC.Collect();
GC.WaitForPendingFinalizers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,21 +1075,10 @@ internal async void ReadPointFromLayer(Envelope surfaceEnvelope, ObservableColle
.Where(lyr => lyr.Name == selectedLayerName && lyr.ShapeType == esriGeometryType.esriGeometryPoint).FirstOrDefault();
var cursor = layer.GetFeatureClass().Search();

//define specific color for observer and target
SimpleMarkerStyle ms = SimpleMarkerStyle.Circle;
CIMColor color = ColorFactory.Instance.BlueRGB;

if (tag == "target")
{
ms = SimpleMarkerStyle.Square;
color = ColorFactory.Instance.RedRGB;
}

while (cursor.MoveNext())
{
var point = (MapPoint)cursor.Current["Shape"];
var guid = await AddGraphicToMap(point, color, true, 5.0, markerStyle: ms, tag: tag);
var addInPoint = new AddInPoint { Point = point, GUID = guid };
var addInPoint = new AddInPoint { Point = point, GUID = Guid.NewGuid().ToString() };
var objectId = -1;
var FID = -1;
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ internal override async Task CreateMapElement()
}

DeactivateTool(VisibilityMapTool.ToolId);
OnMapPointToolDeactivated(null);

//await base.CreateMapElement();
}
Expand Down

0 comments on commit f4e390f

Please sign in to comment.