Exemple #1
0
        public UI_OfflineBingMap()
        {
            InitializeComponent();

            InitializeMenu();
            InitializeMap();

            HideDPad();

            mWebMapCommon = new Map2DOffline();
            //NOTE: DER ER MASSER AF REDUNDANS MELLEM ONLINE OG OFFLINE FASEN

            SetupEventHandlers();
            //force map update
            mWebMapCommon.handleMapReady();
        }
        public UI_OfflineBingMap()
        {
            InitializeComponent();
        
            InitializeMenu();
            InitializeMap();

            HideDPad();
  
            mWebMapCommon = new Map2DOffline();
            //NOTE: DER ER MASSER AF REDUNDANS MELLEM ONLINE OG OFFLINE FASEN

            SetupEventHandlers();
            //force map update
            mWebMapCommon.handleMapReady();
        }
        public UI_OfflineGoogleMap()
        {
            InitializeComponent();
            InitializeMenu();
            HideDPad();

            mWebMapCommon = new Map2DOffline(webBrowserOffline);
            //Update the page's title to correpond to the selected vertex
            mWebMapCommon.OnTitleChange += (source, args) => this.ApplicationTitle.Text = args.Title;
            //Go to the Edit Location/Add measurement dialog when the user taps on a vertex
            mWebMapCommon.OnTapChange += (source, args) =>
            {
                StringBuilder sb = new StringBuilder();
                sb.Append(Globals.XamlUri_OfflineOnTapAction);
                sb.Append("?title=");
                sb.Append(this.ApplicationTitle.Text);
                this.NavigationService.Navigate(new Uri(sb.ToString(), UriKind.Relative));
            };

            //When a symbolic location has been added or modified we update the map to show the correct markers.
            EditSymbolicLocation.OnSymbolicLocationChange += (source, eventArgs) => mWebMapCommon.refreshUI();
        }
        public UI_OfflineGoogleMap()
        {
            InitializeComponent();
            InitializeMenu();
            HideDPad();
  
            mWebMapCommon = new Map2DOffline(webBrowserOffline);
            //Update the page's title to correpond to the selected vertex
            mWebMapCommon.OnTitleChange += (source, args) => this.ApplicationTitle.Text = args.Title;
            //Go to the Edit Location/Add measurement dialog when the user taps on a vertex
            mWebMapCommon.OnTapChange += (source, args) =>
                {
                    StringBuilder sb = new StringBuilder();
                    sb.Append(Globals.XamlUri_OfflineOnTapAction);
                    sb.Append("?title=");
                    sb.Append(this.ApplicationTitle.Text);
                    this.NavigationService.Navigate(new Uri(sb.ToString(), UriKind.Relative));
                };

            //When a symbolic location has been added or modified we update the map to show the correct markers. 
            EditSymbolicLocation.OnSymbolicLocationChange += (source, eventArgs) => mWebMapCommon.refreshUI();
        }
 void mWebMapCommon_OnSelectedLocationChange(object sender, Map2DOffline.SelectedLocationArgs e)
 {
     AddSelectedLocation(new GeoCoordinate(e.Latitude, e.Longitude));
 }