public void SetLayerHelper(LayerHelper layerHelper) { this.layerHelper = layerHelper; var hexLayer = layerHelper.FindLayer(Constants.Hexagonlayername); if (hexLayer == null) return; hexagonOnOff = new LayerControlOnOff(hexLayer, true); hexagonOnOff.VisibilityChanged += hexagonLayerOnOff_VisibilityChanged; layerWrapper.Children.Add(hexagonOnOff); }
public void SetLayerHelper(LayerHelper layerHelper) { this.layerHelper = layerHelper; layerWrapper.Children.Add(new TimeLineControl()); var hexLayer = layerHelper.FindLayer(Constants.Hexagonlayername); if (hexLayer == null) return; layerWrapper.Children.Add(new LayerControlOnOff(hexLayer)); //layerHelper.BaseLayersChanged += LayerHelperBaseLayersChanged; //layerHelper.LayersChanged += LayerHelperLayersChanged; }