private void OnInvokeSharpMapLayerDialog(object sender, EventArgs e)
        {
            var map = new SharpMap.Map();
            var ts = new BruTile.Web.OsmTileSource();
            var tl = new SharpMap.Layers.TileLayer(ts, "OSM");
            map.Layers.Add(tl);

            var sml = new SharpMapLayer(map);
            App.Map.Layers.Add(sml);
        }
Ejemplo n.º 2
0
        private void OnInvokeSharpMapLayerDialog(object sender, EventArgs e)
        {
            var map = new SharpMap.Map();
            var ts  = new BruTile.Web.OsmTileSource();
            var tl  = new SharpMap.Layers.TileLayer(ts, "OSM");

            map.Layers.Add(tl);

            var sml = new SharpMapLayer(map);

            App.Map.Layers.Add(sml);
        }