Thankxxxxxxxxxxxxxxxx

Aug 21, 2009 at 5:09 AM
Edited Aug 21, 2009 at 5:32 AM

@Radioman

Thannnnnnnnnkkkkkkkkkksssssssssssssss for sharing such a gooooooood Control with us, really helpful.

Thanks again.

Coordinator
Aug 21, 2009 at 6:19 AM

;}

Sep 8, 2009 at 8:54 AM
Edited Sep 8, 2009 at 9:19 AM

Hay dear,

I want to know that how did u get maps type from combobox and assign it to MainMap.Maptype Please replay me i cant understand from the code. and i want to use this in wpf.

Thanks

Sep 8, 2009 at 9:34 AM

Hi,

In MainWindow only below code:

// get map types
            comboBoxMapType.ItemsSource = Enum.GetValues(typeof(MapType));
            comboBoxMapType.SelectedItem = MainMap.MapType;

//In MapType.cs

   /// <summary>
   /// types of great maps
   /// </summary>

public enum MapType
   {
      GoogleMap=1,
      GoogleSatellite=4,
      GoogleLabels=8,      
      GoogleTerrain=16,
      GoogleHybrid=20,

      GoogleMapChina=22,
      GoogleSatelliteChina=24,
      GoogleLabelsChina=26,
      GoogleTerrainChina=28,
      GoogleHybridChina=29,

      OpenStreetMap=32,
      OpenStreetOsm=33,

      YahooMap=64,
      YahooSatellite=128,
      YahooLabels=256,
      YahooHybrid=333,

      VirtualEarthMap=444,
      VirtualEarthSatellite=555,
      VirtualEarthHybrid=666,

      ArcGIS_Map = 777,
      ArcGIS_Satellite=788,
      ArcGIS_ShadedRelief=799,
      ArcGIS_Terrain=811, 
      
      ArcGIS_MapsLT_Map=877,
      ArcGIS_MapsLT_OrtoFoto=888,
      ArcGIS_MapsLT_Map_Labels=890,
      ArcGIS_MapsLT_Map_Hybrid=899,
   }

Any ideas?

Coordinator
Sep 8, 2009 at 11:46 AM

 

// map type changed
private void comboBoxMapType_DropDownClosed(object sender, EventArgs e)
{
    MainMap.MapType = (MapType) comboBoxMapType.SelectedItem;
    // ... 
}

 

 

Sep 11, 2009 at 7:02 AM

Thanks for replay, i found another solution which is

Variable var  = (Type in which you want to convert)Enum.Parse(typeof(Type in which you want to convert), string, false);

by using this i convert the following.

dataSeries[i].RenderAs = (RenderAs)Enum.Parse(typeof(RenderAs), strChartType, false);

Thanks again

Regards:

KAshif Usman