Load a WMS map on bing map using WPF.

4225
0
12-28-2015 03:19 AM
BaharAzartoos
New Contributor III

Hi Dears

I want to load an wms map on bing map in WPF. I have used Microsoft.Maps.MapControl.WPF.dll in my project. this is my xaml code with the key that I get from the internet.

<Window x:Class="bing_Map1.MainWindow"

         xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"

          xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        Title="MainWindow" Height="350" Width="525">

    <Grid>

        <m:Map x:Name="myMap" CredentialsProvider="AihFqQDmYg5Be9jUwS7vEoKUitUjs9rLcuttasf6dAtIWsTXByYAUpAdwyjXuvUU" Mode="Aerial">

            <Button Content="Button" HorizontalAlignment="Left" Height="19" VerticalAlignment="Top" Width="79" Margin="10,10,0,0"/>

        </m:Map>

    </Grid>

</Window>

This code shows me the bing map.

Now, I want to load an wms server on it. For instance the server "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi".

How to do that?

Thanks in advance,

0 Kudos
0 Replies