Ejemplo n.º 1
0
		public override void ViewDidLoad ()
		{
			LocType = LocalisationType.Global;
			
			base.ViewDidLoad ();
			
			/*			
			var mapView = new MKMapView();
			var dv = new TimelineViewController(FilterType.Liked, false, null, this);
			
			// When the view goes out of screen, we fetch the data.
			dv.ViewDissapearing += delegate {

			};
			
			int mapHeight = 150;
			mapView.Frame = new RectangleF(0, 0, 320, mapHeight);
			dv.View.Frame = new RectangleF(0, mapHeight, 320, UIScreen.MainScreen.Bounds.Height - mapHeight);
			
			this.View.AddSubview(mapView);
			this.View.AddSubview(dv.View);
			*/			
			
			StartMapViewController startMap = null;
			if (image == null)
				startMap = new StartMapViewController(_MSP, this, images);
			else
				startMap = new StartMapViewController(_MSP, this, image);
			
			this.View.Add(startMap.View);
			
			startMap.HeaderInfos = headerInfos;
			startMap.UpdateTitle();
		}		
Ejemplo n.º 2
0
		public void GotoMapState(bool showMap)
		{
			if (LocType == LocalisationType.Local && Location == null)
				return;
			
			if (showMap)
			{				
				bool isNull = false;
				if (Map == null)
				{
					Map = new StartMapViewController (_MSP, this);
					isNull = true;
				}
				
				if (showMap == IsMap)
					this.PresentModalViewController(Map, true);
				else
					_MSP.PresentModalViewController(Map, true);
				
				if (!isNull)
				{
					Map.Reset();
					Map.SetPosition();
				}				
								
				IsMap = true;
			}
			else
				IsMap = false;
		}