Exemplo n.º 1
0
 /// <summary>
 /// Loads geo-imagery from specified imagery source
 /// </summary>
 public static void LoadGeoImagery(this XamGeographicMap geoMap, GeoImagerySource imagerySource)
 {
     if (imagerySource == GeoImagerySource.BingMapsImagery)
     {
         geoMap.LoadGeoImagery(IGExtensions.Common.Maps.Imagery.BingMapsImageryStyle.StreetMapStyle);
     }
     else if (imagerySource == GeoImagerySource.MapQuestImagery)
     {
         geoMap.LoadGeoImagery(MapQuestImageryStyle.StreetMapStyle);
     }
     else if (imagerySource == GeoImagerySource.EsriMapImagery)
     {
         geoMap.LoadGeoImagery(EsriMapImageryStyle.WorldTopographicMap);
     }
     else if (imagerySource == GeoImagerySource.OpenStreetMapImagery)
     {
         geoMap.LoadGeoImagery(new OpenStreetMapImageryView());
     }
     else
     {
         System.Diagnostics.Debug.WriteLine("WARNING: Imagery source " + imagerySource + " is not supported by IGExtensions library.");
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Loads geo-imagery from specified imagery style of ESRI
 /// </summary>
 public static void LoadGeoImagery(this XamGeographicMap geoMap, EsriMapImageryStyle imageryStyle)
 {
     geoMap.LoadGeoImagery(new EsriMapImageryView(imageryStyle));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Loads geo-imagery from specified imagery style of MapQuest
 /// </summary>
 public static void LoadGeoImagery(this XamGeographicMap geoMap, MapQuestImageryStyle imageryStyle)
 {
     geoMap.LoadGeoImagery(new MapQuestImageryView(imageryStyle));
 }
Exemplo n.º 4
0
        /// <summary>
        /// Loads geo-imagery from specified imagery style of BingMaps
        /// </summary>
        public static void LoadGeoImagery(this XamGeographicMap geoMap, Infragistics.Controls.Maps.BingMapsImageryStyle imageryStyle)
        {
            var geoImageryStyle = (IGExtensions.Common.Maps.Imagery.BingMapsImageryStyle)imageryStyle;

            geoMap.LoadGeoImagery(new BingMapsImageryView(geoImageryStyle));
        }
Exemplo n.º 5
0
 /// <summary>
 /// Loads geo-imagery from specified imagery style of BingMaps
 /// </summary>
 public static void LoadGeoImagery(this XamGeographicMap geoMap, IGExtensions.Common.Maps.Imagery.BingMapsImageryStyle imageryStyle)
 {
     geoMap.LoadGeoImagery(new BingMapsImageryView(imageryStyle));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Loads geo-imagery from default imagery style of OpenStreetMap
 /// </summary>
 public static void LoadGeoImagery(this XamGeographicMap geoMap)
 {
     geoMap.LoadGeoImagery(new OpenStreetMapImageryView());
 }