This project has moved. For the latest updates, please go here.
1
Vote

Display TmsTile

description

Using the next code (taking from internet) I'll try to add a tms background map, but doesn´t do anything, tracking with fiddler it never made any request
        var _url = "https://raw.githubusercontent.com/ArcBruTile/ArcBruTile/master/config/Services/Mapbox/Satellite.xml";
        var request = (HttpWebRequest)WebRequest.Create(_url);
        request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14";
        var response = (HttpWebResponse)request.GetResponse();
        var stream = response.GetResponseStream();
        var tileSource = TmsTileSource.CreateFromTileMapResource(stream);// TileMapParser.CreateTileSource(stream);
        TileAsyncLayer MabboxMaps = new TileAsyncLayer(tileSource, "Mapbox");
        MabboxMaps.SRID = 4326;
        this.mapBox1.Map.BackgroundLayer.Clear();
        this.mapBox1.Map.BackgroundLayer.Add(MabboxMaps);
        this.mapBox1.Refresh();
What's wrong? I cant find any functional sample about that

Thanks

comments