Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions Examples/IGGeographicMap/Samples/Data/BindingGeoTileSeries.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using IGGeographicMap.Extensions;
using IGGeographicMap.Resources;
using Infragistics.Controls.Charts;
using Infragistics.Controls.Maps;
using Infragistics.Samples.Framework;
using Infragistics.Samples.Shared.DataProviders;
Expand Down Expand Up @@ -211,9 +212,16 @@ private void ShowAzureMapsImagery(AzureMapImageryView mapView)
}
else
{
var series = this.GeoMap.Series.OfType<GeographicTileSeries>().First();
series.TileImagery = new AzureMapsImagery { ImageryStyle = mapStyle, ApiKey = this.AzureMadeMapKey };
this.GeoMap.BackgroundContent = new AzureMapsImagery { ImageryStyle = AzureMapsImageryStyle.DarkGrey, ApiKey = this.AzureMadeMapKey };
this.GeoMap.Series.Clear();

this.GeoMap.Series.Add(new GeographicTileSeries { TileImagery = new AzureMapsImagery { ImageryStyle = mapStyle, ApiKey = this.AzureMadeMapKey }});

if (mapStyle.ToString().Contains("Traffic") || mapStyle.ToString().Contains("Weather"))
{
this.GeoMap.BackgroundContent = new AzureMapsImagery { ImageryStyle = AzureMapsImageryStyle.DarkGrey, ApiKey = this.AzureMadeMapKey };
}
else
this.GeoMap.BackgroundContent = new AzureMapsImagery { ImageryStyle = AzureMapsImageryStyle.Satellite, ApiKey = this.AzureMadeMapKey };

}
}
Expand Down