Bing Maps error in V1.0

Topics: SharpMap v0.9 / v1.x
Apr 19, 2013 at 4:20 PM
Hi,
Bing Maps leyers not display correctly in MapBox in release V1.0. I noticed a shift in the projection in my application. Can also be seen in the SharpMap example (Shows Async Tile Layers), when Bing Layer sequentially displayed on Google layer or OSM. In the old version 0.9 everything was fine.

Thanks

Vladimir
Coordinator
Apr 19, 2013 at 4:24 PM
Hi,

There is an issue with Bing and Brutile 0.7.3 that is used in RC2 that have been fixed in 0.7.4 that will be used in 1.0 final...

A temporary workaround could be to use
string userAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14";
string referer = "http://www.bing.com/maps/";

ITileSource tileSource = new TileSource(new WebTileProvider(new BruTile..Web.BingRequest(BruTile.Web.BingRequest.UrlBing, token, BruTile.Web.BingMapType.Roads), userAgent, referer, false), new SphericalMercatorInvertedWorldSchema());

Please note that this will not work with brutile 0.7.4, since it's working now due to the Bing-bug in 0.7.3...

Or you could just upgrade to Brutile 0.7.4, that will solve your problem