private void ShowOtherDealers(bool show) { if (_otherDealerMarkers.Count > 0) { //we already have other dealers shown on the map - remove them first foreach (GMapMarker _marker in _otherDealerMarkers) { MainMap.Markers.Remove(_marker); //RemoveCircleZone(_marker.Position); } _otherDealerMarkers = new List <GMapMarker>(); } if (show == true) { List <Dealer> _dealers = DealerService.GetInRadius((double)_selectedDealer.Latitude, (double)_selectedDealer.Longitude, (double)_selectedDealer.MaxDistance); foreach (Dealer _dealer in _dealers) { if (_dealer.Latitude != null && _dealer.ID != _selectedDealer.ID) { GMapMarker currentMarker = new GMapMarker(new PointLatLng() { Lat = (double)_dealer.Latitude, Lng = (double)_dealer.Longitude }); { currentMarker.Shape = new CustomMarkerOrange(currentMarker, _dealer); currentMarker.Offset = new System.Windows.Point(-2, -2); currentMarker.ZIndex = int.MaxValue; MainMap.Markers.Add(currentMarker); //AddCircleZone((double)_dealer.MaxDistance, new PointLatLng() { Lat = (double)_dealer.Latitude, Lng = (double)_dealer.Longitude }); _otherDealerMarkers.Add(currentMarker); } } } } }