/// <summary>
        ///Initialize the map and create itemssource for each of the shalpe files and
        /// </summary>
        private void ParseAllShapefiles()
        {
            //Wait till all the ShaleFiles have been imported
            if (this.ShapeFileBodyLin != null && this.ShapeFileBodyLin.Count > 0 &&
                this.ShapeFileAreasPol != null && this.ShapeFileAreasPol.Count > 0 &&
                this.ShapeFileSeatsPol != null && this.ShapeFileSeatsPol.Count > 0 &&
                this.ShapeFileSeatLabelsLin != null && this.ShapeFileSeatLabelsLin.Count > 0 &&
                this.ShapeFileAreaIconsLin != null && this.ShapeFileAreaIconsLin.Count > 0)
            {
                //Geographic map instance must be passed to the MapCartesianProjection object after importing all the shape files
                MapCartesianProjection mapProjector = new MapCartesianProjection();
                mapProjector.InitializeMap(this.geoMap);
                //Both, the viewmodel and this code behind must use the same MapCartesianProjection instance created here because it holds state information
                _vm.MapProjector = mapProjector;
                //Let the mapProjector compute the min/max of X and Y axis on the Cartesian coordinates
                _vm.InitializeMapBounds(this.ShapeFileBodyLin);

                SetItemsSourceForAllSeries();
            }
        }
 public HospitalView()
 {
     InitializeComponent();
     MapProjector = new MapCartesianProjection();
     this.Loaded += OnHospitalViewLoaded;
 }
 public HospitalMapViewModel()
 {
     MapProjector = new MapCartesianProjection();
 }