Ejemplo n.º 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="mapControl">Parent map control.</param>
        /// <param name="clustering">Clustering manager.</param>
        /// <param name="mapSelectionManager">Map selection manager.</param>
        public MapExtentManager(MapControl mapControl, Clustering clustering, MapSelectionManager mapSelectionManager)
        {
            Debug.Assert(mapControl != null);
            Debug.Assert(clustering != null);
            Debug.Assert(mapSelectionManager != null);

            _mapControl          = mapControl;
            _clustering          = clustering;
            _mapSelectionManager = mapSelectionManager;

            _InitEventHandlers();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Parent map control.
        /// </summary>
        /// <param name="mapControl">Parent map control.</param>
        /// <param name="mapSelectionManager">Map selection manager.</param>
        /// <param name="clustering">Clustering manager.</param>
        /// <param name="tools">Tools manager.</param>
        /// <param name="mapTips">Maptips manager.</param>
        public MapEventsManager(MapControl mapControl, MapSelectionManager mapSelectionManager, Clustering clustering,
                                MapTools tools, MapTips mapTips)
        {
            Debug.Assert(mapControl != null);
            Debug.Assert(clustering != null);
            Debug.Assert(tools != null);
            Debug.Assert(mapTips != null);
            Debug.Assert(mapSelectionManager != null);

            _mapControl          = mapControl;
            _clustering          = clustering;
            _tools               = tools;
            _mapTips             = mapTips;
            _mapSelectionManager = mapSelectionManager;

            _InitEventHandlers();

            _openHandCursor    = ((TextBlock)mapControl.LayoutRoot.Resources["OpenHand"]).Cursor;
            _grabbedHandCursor = ((TextBlock)mapControl.LayoutRoot.Resources["GrabbedHand"]).Cursor;

            _mapControl.map.Cursor = _openHandCursor;
        }
Ejemplo n.º 3
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Constructor.
        /// </summary>
        public MapControl()
        {
            InitializeComponent();

            MapLayersWidget.ActiveBaseLayerChanged += new RoutedEventHandler(MapLayersWidget_ActiveBaseLayerChanged);

            _mapTips = new MapTips();
            _tools = new MapTools(this, toolPanel);
            _clustering = new Clustering(this);

            _mapSelectionManager = new MapSelectionManager(this, _clustering, _objectLayers);
            _mapEventsManager = new MapEventsManager(this, _mapSelectionManager, _clustering, _tools, _mapTips);
            _mapExtentManager = new MapExtentManager(this, _clustering, _mapSelectionManager);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="mapControl">Parent map control.</param>
        /// <param name="clustering">Clustering manager.</param>
        /// <param name="mapSelectionManager">Map selection manager.</param>
        public MapExtentManager(MapControl mapControl, Clustering clustering, MapSelectionManager mapSelectionManager)
        {
            Debug.Assert(mapControl != null);
            Debug.Assert(clustering != null);
            Debug.Assert(mapSelectionManager != null);

            _mapControl = mapControl;
            _clustering = clustering;
            _mapSelectionManager = mapSelectionManager;

            _InitEventHandlers();
        }