Ejemplo n.º 1
0
        /// <summary>
        /// Raises the OnMapMouseMove event.
        /// </summary>
        /// <param name="e"></param>
        private void RaiseOnMapMouseMove(MouseEventArgs e)
        {
            var geoCoordinates = _mapSceneManager.ToGeoCoordinates(e.GetPosition(this));
            var args           = new MapControlEventArgs(e, geoCoordinates);

            OnMapMouseMove(args);
            MapMouseMove?.Invoke(this, args);
        }
Ejemplo n.º 2
0
 private void UcMap_OnMouseMove(object sender, IMapControlEvents2_OnMouseMoveEvent e)
 {
     if (MapMouseMove != null)
     {
         IPoint pt = new PointClass();
         pt.PutCoords(e.mapX, e.mapY);
         pt.SpatialReference = UcMap.Map.SpatialReference;
         MapMouseMove.Invoke(pt);
     }
 }