private void MapMouseClickHandler(object sender, MapMouseRoutedEventArgs eventArgs)
 {
     if (MouseMapClick != null)
     {
         MouseMapClick(eventArgs.Location.ToMapCoord());
     }
 }
 private void MapMouseClickHandler(object sender, MapMouseRoutedEventArgs eventArgs)
 {
     if (MouseMapClick != null)
     {
         MouseMapClick(eventArgs.Location.ToMapCoord());
     }
 }
Esempio n. 3
0
        private void radMap_MapMouseDoubleClick(object sender, MapMouseRoutedEventArgs e)
        {
            ReverseGeocodeRequest reverseRequest = new ReverseGeocodeRequest();

            reverseRequest.Location = e.Location;
            this.geocodeProvider.ReverseGeocodeAsync(reverseRequest);
        }
        private void radMap_MapMouseDoubleClick(object sender, MapMouseRoutedEventArgs e)
        {
            // Search Address by Location. Reversed geocode.
            BingRestSearchLocationRequest reverseRequest = new BingRestSearchLocationRequest();

            reverseRequest.Query = e.Location.ToString();
            this.restProvider.SearchLocationAsync(reverseRequest);
        }
Esempio n. 5
0
        private void MapSelectLatitudeLongitude(object sender, MapMouseRoutedEventArgs eventArgs)
        {
            var latitudeLongitude = new Tuple<decimal, decimal>((decimal)eventArgs.Location.Latitude,
                                                                (decimal)eventArgs.Location.Longitude);

            if (this.SubLocationsVM.ManuallySetLatitudeLongitude.CanExecute(latitudeLongitude))
                this.SubLocationsVM.ManuallySetLatitudeLongitude.Execute(latitudeLongitude);
        }
        private void RadMap1_MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
        {
            // Create new map item.
            PointOfInterest item = new PointOfInterest();
            item.Title = string.Format("Lat: {0:F4}, Lon: {1:F4}", eventArgs.Location.Latitude, eventArgs.Location.Longitude);
            item.Location = eventArgs.Location;
			item.BaseZoomLevel = this.RadMap1.ZoomLevel;

            this.poiCollection.RemoveAll();
            this.poiCollection.Add(item);
        }
        private void RadAniMap_Click(object sender, MapMouseRoutedEventArgs e)
        {
            if (!PaneYol.IsHidden) 
            {
                ClientIslem.rotaPoints.Add(e.Location);
                layerKare.Items.Add(e.Location);
            }
            if (!PaneTanim1.IsHidden)
            {
                RadAniMap.Items.Clear();
                layerTanim1.Items.Clear();
                layerTanim1.Items.Add(e.Location);
                RadAniMap.Items.Add(layerTanim1);
                
                if (tanimStr == "ROTA")
                {
                    if (RotaCol.Count == 0)
                    {
                        lyr = new InformationLayer();
                        RotaLine.Points = new LocationCollection();
                        
                    }
                    RotaCol.Add(e.Location);
                    

                    if (RotaCol.Count > 1)
                    {
                        RotaLine.Points = RotaCol;
                        SetStyle(RotaLine,"mavi");
                        lyr.Items.Clear();
                        RadAniMap.Items.Clear();
                        lyr.Items.Add(RotaLine);
                        RadAniMap.Items.Add(lyr);
                        
                    }
                    
                }

                if (tanimStr == "BÖLGE")
                {
                    if (RotaCol.Count == 0)
                    {
                        lyr = new InformationLayer();
                        RotaLine.Points = new LocationCollection();

                    }
                    RotaCol.Add(e.Location);


                    if (RotaCol.Count > 1)
                    {
                        RotaLine.Points = RotaCol;
                        lyr.Items.Clear();
                        RadAniMap.Items.Clear();
                        lyr.Items.Add(RotaLine);
                        RadAniMap.Items.Add(lyr);

                    }

                }
            }
        }
Esempio n. 8
0
 private void radMap_MapMouseDoubleClick(object sender, MapMouseRoutedEventArgs e)
 {
     //implement logic regarding double click here
 }
Esempio n. 9
0
 private void radMap_MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
 {
     this.informationLayer.Items.Clear();
     this.informationLayer.Items.Add(eventArgs.Location);
 }
Esempio n. 10
0
 private void MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
 {
     this.wayPoints.Add(eventArgs.Location);
 }
Esempio n. 11
0
 private void radMap_MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
 {
     this.informationLayer.Items.Clear();
     this.informationLayer.Items.Add(eventArgs.Location);
 }
Esempio n. 12
0
 private void radMap_MapMouseDoubleClick(object sender, MapMouseRoutedEventArgs e)
 {
     //implement logic regarding double click here
 }
Esempio n. 13
0
 private void MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
 {
     this.wayPoints.Add(eventArgs.Location);
 }
Esempio n. 14
0
        /// <summary>
        /// Selects the latitude longitude when manually selecting the latitude and longitude by clicking the map.
        /// </summary>
        private void MapSelectLatitudeLongitude(object sender, MapMouseRoutedEventArgs eventArgs)
        {
            var latitudeLongitude = new Tuple<decimal, decimal>((decimal)eventArgs.Location.Latitude,
                                                                (decimal)eventArgs.Location.Longitude);

            //In MapEditMode call ManuallySelectLatitudeLongitude command
            if ((VisualStateGroup.CurrentState == null || VisualStateGroup.CurrentState.Name != "MapDetails") &&
                LocationVM.ManuallySetLatitudeLongitude.CanExecute(latitudeLongitude))
                LocationVM.ManuallySetLatitudeLongitude.Execute(latitudeLongitude);
        }
        private void radMap_MapMouseClick(object sender, MapMouseRoutedEventArgs eventArgs)
        {
            object senderDataPoint = GetSenderDataPoint();
            if (senderDataPoint != null)
            {
                Area area = this.GetDataPointArea(senderDataPoint);
                if (senderDataPoint is Store)
                {
                    Store store = (Store)senderDataPoint;

                    if (!store.Equals(this.lastHighlightedStore))
                    {
                        this.SelectArea(store.Area);
                        this.SetStoreHighlightStyle(store);
                    }
                    else
                    {
                        this.SetStoreDefaultStyle(store);
                    }
                }
                else
                {
                    this.SelectArea(area);
                }
            }
        }
Esempio n. 16
0
 private void radMap_MapMouseDoubleClick(object sender, MapMouseRoutedEventArgs e)
 {
     ReverseGeocodeRequest reverseRequest = new ReverseGeocodeRequest();
     reverseRequest.Location = e.Location;
     this.geocodeProvider.ReverseGeocodeAsync(reverseRequest);
 }