/// <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);
 }
 /// <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;
 }
 /// <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;
 }
 /// <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);
        }
Exemple #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);
        }
Exemple #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;
        }
        /// <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();
        }
        /// <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);
        }
        /// <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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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();
        }