private Task OnMapViewChangedAsync(Byte zoomLevel, GeoPoint center, Object manuallyTriggeredChangeParameter)
        {
            var mapViewChangedEventArgs = new MapViewChangedEventArgs(zoomLevel, center, manuallyTriggeredChangeParameter);

            MapViewChanged(mapViewChangedEventArgs);
            return(mapViewChangedEventArgs.WaitCompletionAsync());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Fires when map animation is complete following a call to SetView. This does NOT fire when the user zooms or pans manually.
        /// </summary>
        async void TheMap_ViewChanged(object sender, MapViewChangedEventArgs e)
        {
            // reset progress indicators
            if (_apiMonitor != null)
            {
                _apiMonitor.IsExecuting = false;
            }

            // unregister the handler
            TheMap.ViewChanged -= TheMap_ViewChanged;

            // refresh the map
            await Refresh();
        }
Exemplo n.º 3
0
        void map_ViewChanged(object sender, MapViewChangedEventArgs e)
        {
            (sender as Map).ViewChanged -= map_ViewChanged;
            var        map     = Control;
            var        mapTile = (MapTile)Element;
            MapPinData data    = tapMarker.DataContext as MapPinData;

            var centerLocation = new System.Device.Location.GeoCoordinate(Math.Round(map.Center.Latitude, 4), Math.Round(map.Center.Longitude, 4));
            var pinLocation    = new System.Device.Location.GeoCoordinate(Math.Round(data.Latitude, 4), Math.Round(data.Longitude, 4));

            if (centerLocation == pinLocation)
            {
                mapTile.ShowPinDetailInfo(data.Id);
            }
        }
Exemplo n.º 4
0
 private static void MyMap_ViewChanged(object sender, MapViewChangedEventArgs e)
 {
     ViewChanging = false;
 }
Exemplo n.º 5
0
 private void OnMapViewChangeEnded(object sender, MapViewChangedEventArgs e)
 {
     this.UpdateMapView();
 }
        /// <summary>
        /// Fires when map animation is complete following a call to SetView. This does NOT fire when the user zooms or pans manually.
        /// </summary>
        async void TheMap_ViewChanged(object sender, MapViewChangedEventArgs e)
        {
            // reset progress indicators
            if (_apiMonitor != null) _apiMonitor.IsExecuting = false;

            // unregister the handler
            TheMap.ViewChanged -= TheMap_ViewChanged;

            // refresh the map
            await Refresh();
        }
Exemplo n.º 7
0
 private void map1_ViewChanged_1(object sender, MapViewChangedEventArgs e)
 {
     Debug.WriteLine("map1_ViewChanged_1");
 }
Exemplo n.º 8
0
        void map_ViewChanged(object sender, MapViewChangedEventArgs e)
        {
            (sender as Map).ViewChanged -= map_ViewChanged;
            var map = Control;
            var mapTile = (MapTile)Element;
            MapPinData data = tapMarker.DataContext as MapPinData;

            var centerLocation = new System.Device.Location.GeoCoordinate(Math.Round(map.Center.Latitude, 4), Math.Round(map.Center.Longitude, 4));
            var pinLocation = new System.Device.Location.GeoCoordinate(Math.Round(data.Latitude, 4), Math.Round(data.Longitude, 4));
            if (centerLocation == pinLocation)
                mapTile.ShowPinDetailInfo(data.Id);
        }
Exemplo n.º 9
0
 private void map1_ViewChanged_1(object sender, MapViewChangedEventArgs e)
 {
     Debug.WriteLine("map1_ViewChanged_1");
 }
Exemplo n.º 10
0
 void Map_ViewChanged(object sender, MapViewChangedEventArgs mapViewChangedEventArgs)
 {
     View_Lo         = Map.Center.Longitude  ;
     View_La         = Map.Center.Latitude   ;
     View_ZoomLevel  = Map.ZoomLevel         ;
 }