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
{
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);
}
}
}