void addPushpins()
        {
            List<Pushpin> pushpins = new List<Pushpin>();
            foreach (Deployments dp in app.GlobalDeployments)
            {
                Pushpin push = new Pushpin();
                push.Location = dp.Location;
                push.Tag = dp;
                push.Content = dp.name;
                pushpins.Add(push);
                push.Tap += new EventHandler<System.Windows.Input.GestureEventArgs>(push_Tap);
            }

            var clusterer = new PushpinClusterer(DeploymentsMap, pushpins,
            this.Resources["ClusterTemplate"] as DataTemplate);

            DeploymentsMap.SetView(new GeoCoordinate(-20, 20), 3);
        }
        void loadMap()
        {
            if (app.ActiveDeploymentIncidents != null)
            {
                List<Pushpin> pushpins = new List<Pushpin>();
                foreach (Incident incident in app.ActiveDeploymentIncidents)
                {
                    Pushpin push = new Pushpin();
                    push.Location = incident.incident.Location;
                    push.Content = incident.incident.RelativeDate;
                    push.Tag = incident.incident;
                    pushpins.Add(push);

                }

                var clusterer = new PushpinClusterer(IncidentMap, pushpins,
                this.Resources["ClusterTemplate"] as DataTemplate);
                if (app.ActiveDeploymentIncidents.Count > 0)
                {
                    GeoCoordinate x1 = app.SelectedDeployment.Location;
                    GeoCoordinate x2 = app.ActiveDeploymentIncidents[0].incident.Location;
                    if (x1.GetDistanceTo(x2) > 100000)
                    {
                        IncidentMap.SetView(x2, 7);
                    }
                    else
                    {
                        IncidentMap.SetView(x1, 7);
                    }

                }
                else
                {
                    IncidentMap.SetView(app.SelectedDeployment.Location, 7);
                }

            }
        }