public override void ViewDidLoad() { base.ViewDidLoad(); Menu = new BaseMapSectionMenu(); Menu.Items = Sections.List; MenuButton = new MenuButton("icons/icon_more.png", new CGRect(0, 10, 20, 30)); NavigationItem.RightBarButtonItem = MenuButton; // Set initial style Menu.SetInitialItem(Sections.Nutiteq); Menu.SetInitialItem(Sections.Language); UpdateBaseLayer(Sections.Nutiteq, Sections.BaseStyleValue); UpdateLanguage(Sections.BaseLanguageCode); // Zoom to Central Europe so some texts would be visible MapPos europe = BaseProjection.FromWgs84(new MapPos(15.2551, 54.5260)); MapView.SetFocusPos(europe, 0); MapView.Zoom = 5; recognizer = new ForceTouchRecognizer(); MapView.AddGestureRecognizer(recognizer); }
public override void ViewDidLoad() { base.ViewDidLoad(); Menu = new BaseMapSectionMenu(); Menu.Items = Sections.List; MenuButton = new MenuButton("icons/icon_more.png", new CGRect(0, 10, 20, 30)); NavigationItem.RightBarButtonItem = MenuButton; // Set initial style Menu.SetInitialItem(Sections.Nutiteq); Menu.SetInitialItem(Sections.Language); UpdateBaseLayer(Sections.Nutiteq, Sections.BaseStyleValue); UpdateLanguage(Sections.BaseLanguageCode); // Zoom to Central Europe so some texts would be visible MapPos europe = BaseProjection.FromWgs84(new MapPos(15.2551, 54.5260)); MapView.SetFocusPos(europe, 0); MapView.Zoom = 5; }