単純に表示してみる

使うコンポーネットは、mapというコンポーネットです

20151214_124636_n00

フォームを適当作成してフォーム上のドロップします。

あとは、

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

は変更なし

private void Form1_Load(object sender, EventArgs e)
{

map.AddLayer(@”[Your Folder]\DotSpatialDev\shapefiles\Counties\Counties.shp”);

}

で表示されます。

 

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です