Esempio n. 1
0
        private void TakeSnapshot()
        {
            Collection <MapShape> features = new Collection <MapShape>();

            foreach (var mapShape in shapeLayer.MapShapes)
            {
                features.Add(mapShape.Value);
            }
            stateController.Add(features);
        }
Esempio n. 2
0
    private void FillWindowsList(StateController <WindowsManagement> controller, Window[] windows)
    {
        foreach (var window in windows)
        {
            if (controller.Contains(window))
            {
                continue;
            }

            window.gameObject.SetActive(false);
            window.Initialize(this);

            controller.Add(window);
        }
    }
Esempio n. 3
0
        public MeasureTrackInteractiveOverlay()
        {
            measuringMode      = MeasuringInMode.DecimalDegree;
            measureCustomeMode = MeasureCustomeMode.Select;
            shapeLayer         = new MapShapeLayer();
            textBlock          = new TextBlock {
                Visibility = Visibility.Collapsed
            };
            OverlayCanvas.Children.Add(textBlock);
            PolygonTrackMode = PolygonTrackMode.LineOnly;
            RenderMode       = RenderMode.DrawingVisual;
            InitializeColumns(TrackShapeLayer);
            InitializeColumns(TrackShapesInProcessLayer, false);

            SetStylesForInMemoryFeatureLayer(TrackShapeLayer);
            SetStylesForInMemoryFeatureLayer(TrackShapesInProcessLayer);
            stateController = new StateController <Collection <MapShape> >();
            stateController.Add(new Collection <MapShape>());
        }