Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Load layer WMS in Map Control (DotSpatial)

$
0
0
Introducing the project in references and loading the bookshop with the command "using", on having compiled it loses the reference to the bookshop " DotSpatial. Plugins. BruTileLayer; ", as that it had not loaded her. I have returned to compile the whole solution and, though initially it look like that to loaded the bookshop, on having executed gives a message VS2010 indicating that he does not find the bookshop. which is the problem?

Thanks.

Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DotSpatial.Plugins.BruTileLayer;
using System.ComponentModel.Composition;


using DotSpatial.Controls;
using DotSpatial.Symbology;
using DotSpatial.Projections;


namespace GestionRetortillo
{
public partial class frmBaseSIG : GestionRetortillo.frmBaseChild
{
    [Export("Shell", typeof(ContainerControl))]
    private static ContainerControl Shell;

    public frmBaseSIG()
    {
        Shell = this;
        InitializeComponent();
    }
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);

        var l = BruTileLayer.CreateOsmMapnicLayer();
        l.Reproject(map1.Projection);
        map1.Layers.Add(l);

    }

}
}

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>