This project has moved and is read-only. For the latest updates, please go here.

Bing Maps error in V1.0

Topics: SharpMap v0.9 / v1.x
Apr 19, 2013 at 5:20 PM
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.


Apr 19, 2013 at 5:24 PM

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: Gecko/20080404 Firefox/";
string referer = "";

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