display layer from wms

May 30, 2011 at 9:51 AM

hi,

Is there support for displaying a layer from wms in mapsui silverlight?

Coordinator
May 30, 2011 at 11:27 AM

You could use the WMS-C provider to access WMS in a tiled way. You need to configure it in code though. 

Paul

May 30, 2011 at 1:18 PM

is there an example of this I couldnt find one, what classes does it use?

Coordinator
May 30, 2011 at 4:09 PM
Edited May 30, 2011 at 9:24 PM

In Mapsui.Wpf a WMS-C tile source is created:

 

        private void GeodanWmsClick(object sender, RoutedEventArgs e)
        {
            mapControl.Map = CreateMap(new TileLayer(new GeodanWorldWmsTileSource()));
        }

 

http://mapsui.codeplex.com/SourceControl/changeset/view/65960#1025790

 

This is the hand coded initialization. You need to create something like this to fit your own WMS

http://mapsui.codeplex.com/SourceControl/changeset/view/65960#1001133

 

cheers,

Paul