${mapping_Layer_Title}

${mapping_Layer_Description}

Inheritance: DependencyObject, INotifyPropertyChanged, IDisposable
        internal TiledLayerContainer(Layer layer)
            : base(layer)
        {

        }
 internal LayerContainer(Layer layer)
 {
     this.Layer = layer;
     base.Opacity = layer.Opacity;
     layer.PropertyChanged += new PropertyChangedEventHandler(this.layer_PropertyChanged);
 }
Esempio n. 3
0
        private void LoadLayerInView(bool useTransitions, Rectangle2D drawBounds, Layer layer)
        {
            if (!Rectangle2D.IsNullOrEmpty(drawBounds) && layer.IsInitialized && (layer.Error == null)
      && (layer.MinVisibleResolution <= targetResolution) && (layer.MaxVisibleResolution >= targetResolution)
      && layer.IsVisible && Layers.Contains(layer) && CoordinateReferenceSystem.Equals(layer.CRS, CRS, true))
            {
                layer.Update(new UpdateParameter()
                {
                    UseTransitions = useTransitions,
                    Resolutions = Resolutions,
                    Resolution = mapResolution,
                    ViewBounds = drawBounds,
                    ViewSize = currentSize,
                    LayerOrigin = layer.Container.Origin
                });
            }

        }
        internal DynamicLayerContainer(Layer layer)
            : base(layer)
        {

        }
Esempio n. 5
0
        private void RemoveMapLayers(Layer _layer)
        {
            _layer.LayerChanged -= new Layer.LayerChangedHandler(this.layer_OnLayerChanged);
            _layer.Initialized -= new EventHandler<EventArgs>(this.layer_Initialized);
            _layer.CancelLoad();
            _layer.Container.Children.Clear();
            if ((this.layerCollectionContainer != null) && this.layerCollectionContainer.Children.Contains(_layer.Container))
            {
                this.layerCollectionContainer.Children.Remove(_layer.Container);
            }
            _layer.ClearValue(MapProperty);//用的都是Clear

            if (((_layer is FeaturesLayer) && (this.Popup.Child != null)) && ((_layer as FeaturesLayer).ToolTip == this.Popup.Child))
            {
                this.CloseToolTip();
            }
        }
Esempio n. 6
0
 private void InsertLayerContainer(Layer layer)
 {
     int index = 0;
     int num = Layers.IndexOf(layer);
     if (num > 0)
     {
         for (int i = num - 1; i >= 0; i--)
         {
             Layer layer2 = this.Layers[i];
             if ((layer2.Container != null) && (layer2.Container.Parent == this.layerCollectionContainer))
             {
                 index = this.layerCollectionContainer.Children.IndexOf(layer2.Container) + 1;
                 break;
             }
         }
     }
     layerCollectionContainer.Children.Insert(index, layer.Container);
 }
Esempio n. 7
0
 private void AssignLayerContainer(Layer layer)
 {
     if (layer.Container.Parent == null && layer.IsInitialized && layer.Error == null)
     {
         layer.Container.OriginX = this.origin.X;
         layer.Container.OriginY = this.origin.Y;
         layer.Container.Resolution = this.mapResolution;
         this.InsertLayerContainer(layer);
     }
 }
 internal ElementsLayerContainer(Layer layer)
     : base(layer)
 {
     this.orignalBounds = new List<Rectangle2D>();
 }
        internal FeaturesLayerContainer(Layer layer)
            : base(layer)
        {

        }