Posted 28 April 2025, 8:22 am EST
Hi Thomas,
The development team has discussed the deprecation internally and shared that they will be introducing a new OpenStreetTileSource in the 2025v1 Hotfix 1 release. This TileSource will use the OpenStreetMaps API to fetch map tiles and will become the default TileSource for the C1Map control.
Please note that the release of 2025v1 HF1 is scheduled after Microsoft ends support for Bing Maps. Therefore, during this interim period, you will need to update your code to use a custom OpenStreetTileSource. You can use the following code:
public class OpenStreetTileSource : C1.WPF.Maps.MultiScaleTileSource
{
private const string UriFormat = "http://tile.openstreetmap.org/{0}/{1}/{2}.png";
private const int ZoomOffset = -8;
public OpenStreetTileSource() : base(0x8000000, 0x8000000, 256, 256, 0)
{
}
protected override void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)
{
var uri = new Uri(string.Format(CultureInfo.InvariantCulture, UriFormat, tileLevel + ZoomOffset, tilePositionX, tilePositionY));
tileImageLayerSources.Add(uri);
}
}
Regarding the addition of Azure Maps support in C1Map, since Azure Maps always requires an API key, the team also plans to provide an Azure Maps TileSource, which will require the customers to supply their own Azure Maps API key to run.
Best Regards,
Kartik