0
我正在開發一個Web應用程序,它將顯示一個項目在地圖中的位置。我有這個功能添加我想要顯示到地圖圖層的數據。動態地圖圖層與Mapserver的C#MapScript
protected void AgregarPunto(DataTable result)
{
layerObj thislayer = util.MSMap.getLayerByName("poi");
foreach (DataRow dr in result.Rows)
{
shapeObj shp = new shapeObj(mapscript.MS_SHP_POINTM);
shp = shapeObj.fromWKT(dr["the_geom"].ToString());
thislayer.addFeature(shp);
}
}
這是來自#mapserver IRC頻道的傢伙們的推薦。但它不起作用!有人可以幫助弄清楚爲什麼點不顯示?