This project is read-only.

Example C# code displaying ArcGIS Server WebService layers

Dec 22, 2014 at 1:07 PM
Edited Dec 22, 2014 at 2:35 PM
I'm developing in Visual Studio 2013 C# .Net 4.5.

Is there a simple example of how to connect to ArcGIS Server Feature and Image services. We have complete control of the server and services.

Also how to connect to some of the common base maps.
   private void AddWMSLayer(string url)
        DotSpatial.Plugins.WebMap.WMS.WmsServiceProvider BaseMap = new DotSpatial.Plugins.WebMap.WMS.WmsServiceProvider(url);  

        //comes back null -- WmsServiceProvider.cs not found -- this is an arcgis online base map url. When I Ctrl-Click on it in my code I can view it in ArcMap --- Once this works how do I Add it to map1 ???

    private void AddBruTileLayer( string url )
        BruTile.ITileSource tileSource = null; //How is this initialized??
        BruTile.Cache.ITileCache<byte[]> tileCache = null; //How is this initialized??
        DotSpatial.Plugins.WebMap.BrutileServiceProvider Brutile = new BrutileServiceProvider(url, tileSource, tileCache);
        //Once this works how do I Add it to map1 ???
Most of the samples I've seen reference dlls that don't come with the DotSpatial 1.7 download. For example Brutile... When I try to download and build the brutile solutions other dlls are missing.

Where can I find these pre-built dlls?

Why are there no example projects that include the dlls and common urls to base maps?
Dec 22, 2014 at 7:16 PM
Dotspatial.Plugins.Webmap should contain Brutile dlls.