This project is read-only.

Load layer WMS in Map Control (DotSpatial)

Feb 3, 2014 at 11:41 AM
I am working with the version of assembled 1.5 of DotSpatial Controls and am not capable of loading a layer WMS in the control "map". Has someone an example or some code that could re-be in use for loading a WMS or the google maps?

Thank you in advance. A greeting.

Alberto Puigdomenech
Feb 3, 2014 at 12:01 PM
Feb 4, 2014 at 10:28 AM
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?



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;
    protected override void OnLoad(EventArgs e)

        var l = BruTileLayer.CreateOsmMapnicLayer();