I'm developing a web app that will show the location of a project in a map. I have this function add the data I want to show to a map layer.
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);
}
}
This was a recomendation from the guys at #mapserver IRC Channel. But it doesn't work! Can somebody help to figure out why the points are not showed???