private void UpdateChildIdentifyResults(MSCMapLayer parentLayer) { AGSMapService aGSMapService = (AGSMapService)this.ParentService; foreach (MSCMapLayer current in parentLayer.Layers) { if (current.Visible) { AGSMapLayer aGSMapLayer = aGSMapService.FindMapLayer(current.ID); if (aGSMapLayer != null) { current.IdentifyResults = aGSMapLayer.IdentifyResults; this.UpdateChildIdentifyResults(current); } } } }
protected override void SetParentLayerVisibility() { AGSMapService aGSMapService = (AGSMapService)this.ParentService; foreach (MSCMapLayer current in this.Layers) { AGSMapLayer aGSMapLayer = aGSMapService.FindMapLayer(current.ID); if (aGSMapLayer != null) { aGSMapLayer.IsVisible = current.Visible; } if (current.Layers.Count > 0) { this.SetParentSubLayerVisibility(current); } } }
private void SetParentSubLayerVisibility(MSCMapLayer parentLayer) { if (parentLayer.Layers.Count == 0) { return; } AGSMapService aGSMapService = (AGSMapService)this.ParentService; foreach (MSCMapLayer current in parentLayer.Layers) { AGSMapLayer aGSMapLayer = aGSMapService.FindMapLayer(current.ID); if (aGSMapLayer != null) { aGSMapLayer.IsVisible = current.Visible; } if (current.Layers.Count > 0) { this.SetParentSubLayerVisibility(current); } } }
public bool InitializeIdentify(Extent ext) { List <int> mapLayers = this.BuildVisibleFeatureLayerList(); AGSMapService aGSMapService = (AGSMapService)this.ParentService; if (!aGSMapService.Identify(base.ExportOptions, ext, mapLayers)) { return(false); } foreach (MSCMapLayer current in this.Layers) { if (current.Visible) { AGSMapLayer aGSMapLayer = aGSMapService.FindMapLayer(current.ID); if (aGSMapLayer != null) { current.IdentifyResults = aGSMapLayer.IdentifyResults; this.UpdateChildIdentifyResults(current); } } } return(true); }