//-----------------------------------------------------------------------------
//
// Company copyright tag.
//
// fiedlchr
// 13.08.2013
//-----------------------------------------------------------------------------
using CampusAppWPortalLib8.Model.GeoDb;
using CampusAppWPortalLib8.Utility;
namespace CampusAppWPortalLib8.Model.Campusmap
{
///
/// Class for the MapModel of the mainCampus of cottbus
///
public class CBMainMapModel : MapModel
{
/// Variable for the identify of the campus.
private static readonly string Campus = "1";
///
/// Initializes a new instance of the class.
///
public CBMainMapModel(string xmlFilePath) : base(xmlFilePath)
{
}
/// Loads the spatial./.
/// Stubbfel, 19.08.2013.
protected override void LoadSpatials(string xmlFilePath)
{
SpsModel model = XmlManager.DeserializationFileToModel(xmlFilePath);
this.Spatial = new SpsModel();
foreach (PlaceModel place in model.Places)
{
if (Campus.Equals(place.ParentId) || Campus.Equals(place.PlaceId))
{
this.Spatial.Places.Add(place);
}
}
}
}
}