public void TransitToDetailWindow(int semanticLinkId)
        {
            var semanticLink = SemanticLinks.FirstOrDefault(s => s.SemanticLinkId == semanticLinkId);
            var message      = new TransitionMessage(typeof(GraphWindow), new GraphWindowViewModel(semanticLink, _direction), TransitionMode.Normal);

            Messenger.Raise(message);
        }
 public void SetChorale()
 {
     InvokeScript("removeAllImageMarker", null);
     SemanticLinks.AsList().ForEach(s =>
     {
         InvokeScript("addImageMarker", $"{AppDomain.CurrentDomain.BaseDirectory}Resources\\{s.SemanticLinkId}.jpg"
                      , s.Links.Average(l => l.Latitude)
                      , s.Links.Average(l => l.Longitude));
     });
 }
        public void DrawSemanticLinkLines()
        {
            foreach (var semanticLink in SemanticLinks)
            {
                for (int i = 0; i < semanticLink.Links.Count - 1; i++)
                {
                    InvokeScript("addCircle",
                                 semanticLink.Links[i].Latitude,
                                 semanticLink.Links[i].Longitude);

                    if (semanticLink.Links[i].LinkId.Equals(semanticLink.Links[i + 1].LinkId))
                    {
                        InvokeScript("addLine",
                                     semanticLink.SemanticLinkId,
                                     semanticLink.Links[i].Latitude,
                                     semanticLink.Links[i].Longitude,
                                     semanticLink.Links[i + 1].Latitude,
                                     semanticLink.Links[i + 1].Longitude);
                    }
                }
            }

            InvokeScript("moveMap", SemanticLinks.Average(v => v.Links.Average(l => l.Latitude)), SemanticLinks.Average(v => v.Links.Average(l => l.Longitude)));
        }