Ejemplo n.º 1
0
        public CollectionsViewModel()
        {
            Status = TaskStatuses.Success;

            const double Radius = 10;

            Collections.Add(new OverpassCollection(new[] { "toilets" }, Radius)
            {
                Title           = "Toilets",
                ImageSource     = "em173",
                MakeIconFunc    = _ => BitmapCache.GetBitmap("em173.png"),
                MaxVisibleCount = 100
            });
            Collections.Add(new OverpassCollection(new[] { "recycling" }, Radius)
            {
                Title           = "Recycling",
                ImageSource     = "em157",
                MakeIconFunc    = _ => BitmapCache.GetBitmap("em157.png"),
                MaxVisibleCount = 100
            });

            var root = new MapObjectCollection()
            {
                Title           = "Root",
                MaxVisibleCount = 10
            };

            root.Add(Collections.ToList());
            Collections.Add(root);

            MapObjects.Add(root);
        }
Ejemplo n.º 2
0
 public DebugFullDrivingGuideSession(DrivingRouteObject drivingRouteObject,
                                     IDrivingGuide drivingGuide,
                                     IDrivingRouteObjectFactory drivingRouteObjectFactory,
                                     IGenericRendererSync <DrivingRouteObject, DrivingRouteGuideMapObject> guideRouteRenderer,
                                     MapObjectCollection mapObjectCollection,
                                     IInternalLocationService locationService,
                                     IInternalUserLocationLayerPresenter locationLayerPresenter,
                                     ILogManager logManager,
                                     ISettingsRepository settingsRepository,
                                     ILifecycleService lifecycleService,
                                     ILanguagesRepository languagesRepository,
                                     ICameraManager cameraManager,
                                     IMapCameraPositionPresenter cameraPositionPresenter,
                                     ViaPointsSessionManagerFactory viaPointsSessionManagerFactory,
                                     RoutesOverviewPresenterFactory routesOverviewPresenterFactory,
                                     IConcurrencyService concurrencyService,
                                     IDebugPanelSettingsRepository debugRepository) : base(drivingRouteObject,
                                                                                           drivingGuide,
                                                                                           drivingRouteObjectFactory,
                                                                                           guideRouteRenderer,
                                                                                           mapObjectCollection,
                                                                                           locationService,
                                                                                           locationLayerPresenter,
                                                                                           logManager,
                                                                                           settingsRepository,
                                                                                           lifecycleService,
                                                                                           languagesRepository,
                                                                                           cameraManager,
                                                                                           cameraPositionPresenter,
                                                                                           viaPointsSessionManagerFactory,
                                                                                           routesOverviewPresenterFactory)
 {
     _concurrencyService = concurrencyService;
     _debugRepository    = debugRepository;
     _drivingGuide       = drivingGuide;
 }