예제 #1
0
 /// <summary>
 /// Create layer for showing stops associated with locations of current schedule.
 /// </summary>
 private void _CreateStopLocationsLayer()
 {
     _stopLocationsLayer = new ObjectLayer(_stopLocations, typeof(Stop), false);
     _stopLocationsLayer.EnableToolTip();
     _stopLocationsLayer.Selectable = true;
     mapCtrl.AddLayer(_stopLocationsLayer);
 }
예제 #2
0
 /// <summary>
 /// Create layer for showing unassigned orders of current schedule.
 /// </summary>
 private void _CreateUnassignedLayer()
 {
     _unassignedLayer = new ObjectLayer(_unassignedOrdersColl, typeof(Order), true, _stopOrdersLayer.MapLayer);
     _unassignedLayer.EnableToolTip();
     mapCtrl.AddLayer(_unassignedLayer);
     _unassignedLayer.Selectable = true;
 }
예제 #3
0
 /// <summary>
 /// Create layer for showing routes of current schedule.
 /// </summary>
 private void _CreateRoutesLayer()
 {
     _routesLayer = new ObjectLayer(_routesColl, typeof(Route), false);
     _routesLayer.EnableToolTip();
     mapCtrl.AddLayer(_routesLayer);
     _routesLayer.Selectable = true;
 }
예제 #4
0
 /// <summary>
 /// Create layer for showing stops associated with orders of current schedule.
 /// </summary>
 private void _CreateStopOrdersLayer()
 {
     _stopOrdersLayer = new ObjectLayer(_stopOrders, typeof(Stop), true);
     _stopOrdersLayer.EnableToolTip();
     _stopOrdersLayer.Selectable = true;
     mapCtrl.AddLayer(_stopOrdersLayer);
 }
        /// <summary>
        /// Create layer for showing ungeocoded orders.
        /// </summary>
        private void _CreateOrdersLayer()
        {
            _ordersLayer = new ObjectLayer(new List <Order>(), typeof(Order), false);
            _ordersLayer.EnableToolTip();
            _ordersLayer.Selectable = false;

            mapCtrl.AddLayer(_ordersLayer);
        }
예제 #6
0
        /// <summary>
        /// Create layer for showing project locations.
        /// </summary>
        private void _CreateLocationsLayer()
        {
            _locationsLayer = new ObjectLayer(_locations, typeof(Location), false);
            _locationsLayer.EnableToolTip();
            _locationsLayer.Selectable = false;

            mapCtrl.AddLayer(_locationsLayer);
        }
예제 #7
0
        /// <summary>
        /// Create layer for showing project locations
        /// </summary>
        private void _CreateLocationsLayer()
        {
            IEnumerable coll = (IEnumerable)App.Current.Project.Locations;

            _locationsLayer = new ObjectLayer(coll, typeof(Location), false);
            _locationsLayer.EnableToolTip();
            mapCtrl.AddLayer(_locationsLayer);
            _locationsLayer.Selectable = true;
        }
예제 #8
0
        /// <summary>
        /// Create layer to show zones on map.
        /// </summary>
        private void _CreateZonesLayer()
        {
            IEnumerable coll = (IEnumerable)App.Current.Project.Zones;

            _zonesLayer = new ObjectLayer(coll, typeof(Zone), false);
            _zonesLayer.EnableToolTip();
            mapCtrl.AddLayer(_zonesLayer);

            _zonesLayer.Selectable = true;
            _CreateMultiCollectionBinding();
        }
예제 #9
0
        /// <summary>
        /// Create layer for showing project barriers for current date
        /// </summary>
        private void _CreateBarriersLayer()
        {
            _barriersLayer = new ObjectLayer(null, typeof(Barrier), false);

            _barriersLayer.EnableToolTip(); // REV: can we expose EnableToolTip as a property rather than a method
            _barriersLayer.MapLayer.Visible  = App.Current.MapDisplay.ShowBarriers;
            _barriersLayer.ConstantOpacity   = true;
            _barriersLayer.Name              = (string)App.Current.FindResource("BarriersLayerName");
            _barriersLayer.IsBackgroundLayer = true;

            mapCtrl.AddLayer(_barriersLayer);
        }
예제 #10
0
        /// <summary>
        /// Create layer for showing project zones
        /// </summary>
        private void _CreateZonesLayer()
        {
            _zonesLayer = new ObjectLayer(null, typeof(Zone), false);

            _zonesLayer.EnableToolTip();
            _zonesLayer.MapLayer.Visible  = App.Current.MapDisplay.ShowZones;
            _zonesLayer.ConstantOpacity   = true;
            _zonesLayer.Name              = (string)App.Current.FindResource("ZonesLayerName");
            _zonesLayer.IsBackgroundLayer = true;

            mapCtrl.AddLayer(_zonesLayer);
        }
예제 #11
0
        /// <summary>
        /// Create layer for showing project barriers for all dates
        /// </summary>
        private void _CreateBarriersLayer()
        {
            IEnumerable barriersColl = (IDataObjectCollection <Barrier>)App.Current.Project.Barriers.SearchAll(true);

            _barriersLayer = new ObjectLayer(barriersColl, typeof(Barrier), false);
            _barriersLayer.EnableToolTip();
            _barriersLayer.MapLayer.Visible  = App.Current.MapDisplay.ShowBarriers;
            _barriersLayer.ConstantOpacity   = true;
            _barriersLayer.Name              = (string)App.Current.FindResource("BarriersLayerName");
            _barriersLayer.IsBackgroundLayer = true;

            mapCtrl.AddLayer(_barriersLayer);
        }
예제 #12
0
        /// <summary>
        /// Create layer for showing project zones
        /// </summary>
        private void _CreateZonesLayer()
        {
            IEnumerable zonesColl = (IEnumerable)App.Current.Project.Zones;

            _zonesLayer = new ObjectLayer(zonesColl, typeof(Zone), false);
            _zonesLayer.EnableToolTip();
            _zonesLayer.MapLayer.Visible  = App.Current.MapDisplay.ShowZones;
            _zonesLayer.ConstantOpacity   = true;
            _zonesLayer.Name              = App.Current.FindString("ZonesLayerName");
            _zonesLayer.IsBackgroundLayer = true;

            mapCtrl.AddLayer(_zonesLayer);
        }
예제 #13
0
        /// <summary>
        /// Create layer to show barriers on map.
        /// </summary>
        private void _CreateBarriersLayer()
        {
            var coll = (IEnumerable)_collectionSource.Source;

            _barriersLayer = new ObjectLayer(coll, typeof(Barrier), false);
            _barriersLayer.EnableToolTip();
            mapCtrl.AddLayer(_barriersLayer);

            _barriersLayer.Selectable   = true;
            _barriersLayer.LayerContext = App.Current.CurrentDate;

            _CreateMultiCollectionBinding();
        }