/// <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();
        }
        /// <param name="mapControl">Parent map control.</param>
        /// <param name="clustering">Clustering manager.</param>
        /// <param name="objectLayers">Map object layers.</param>
        public MapSelectionManager(MapControl mapControl, Clustering clustering, List<ObjectLayer> objectLayers)
        {
            Debug.Assert(mapControl != null);
            Debug.Assert(clustering != null);
            Debug.Assert(objectLayers != null);

            _mapControl = mapControl;
            _clustering = clustering;
            _objectLayers = objectLayers;

            _InitEventHandlers();

            SelectionFrameLayer = new GraphicsLayer();
        }
Exemple #3
0
        /// <param name="mapControl">Parent map control.</param>
        /// <param name="clustering">Clustering manager.</param>
        /// <param name="objectLayers">Map object layers.</param>
        public MapSelectionManager(MapControl mapControl, Clustering clustering, List <ObjectLayer> objectLayers)
        {
            Debug.Assert(mapControl != null);
            Debug.Assert(clustering != null);
            Debug.Assert(objectLayers != null);

            _mapControl   = mapControl;
            _clustering   = clustering;
            _objectLayers = objectLayers;

            _InitEventHandlers();

            SelectionFrameLayer = new GraphicsLayer();
        }
        /// <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;
        }
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        /// <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();
        }