Aug 10 at 10:08 AM
Edited Aug 10 at 10:44 AM
I'd like to add Open Street Map/ Google Maps/ Bing Maps (Any map will do) as a background layer to my Sharpmap map.
So far I've achieved this in windows forms but I need this in a web Asp .Net, C# web site.
I found a direction to achieve this
How ever I'm experiencing error stating that
The best overloaded method match for 'SharpMap.Layers.TileLayer.TileLayer(BruTile.ITileSource, string)' has some invalid arguments
Argument 1: cannot convert from 'BruTile.Web.BingTileSource' to 'BruTile.ITileSource'
The code used in my aspx.cs file is as below and the error occurs in the
var ShapeDataProvider = new SharpMap.Data.Providers.ShapeFile(@"Local shp Path");
var layer = new VectorLayer("test");
layer.DataSource = ShapeDataProvider;
var layerbing = new TileLayer(new BingTileSource(BingRequest.UrlBing, "", BingMapType.Aerial), "TileLayer");
I'm using sharpmap 1.1.0 with Brutile 0.7.4.4
Any help is much appreciated. Thanks in advance. Cheers!