internal bool GetVisibilityFlag(RuntimeMapGroup group) { return this.ShowAllLayersAndGroups; }
private bool HasVisibleParent(RuntimeMapGroup grp) { if (string.IsNullOrEmpty(grp.Group)) return true; var current = _map.Groups[grp.Group]; if (current != null) return current.Visible; return true; }
internal void OnGroupVisibilityChanged(RuntimeMapGroup group, string visbility) { TrackChange(group.ObjectId, false, Change.ChangeType.visibilityChanged, visbility); //??? }
public RuntimeMapLayer CreateLayer(string layerDefinitionId, RuntimeMapGroup group) { ILayerDefinition ldf = GetLayerDefinition(layerDefinitionId); var layer = new RuntimeMapLayer(this, ldf, true); if (group != null) layer.Group = group.Name; return layer; }
internal void OnGroupParentChanged(RuntimeMapGroup group, string parentId) { TrackChange(group.ObjectId, false, Change.ChangeType.parentChanged, parentId); }
/// <summary> /// Called when a group is removed /// </summary> /// <param name="group"></param> internal void OnGroupRemoved(RuntimeMapGroup group) { //??? var layers = GetLayersOfGroup(group.Name); foreach (var lyr in layers) { this.Layers.Remove(lyr); } TrackChange(group.ObjectId, false, Change.ChangeType.removed, string.Empty); }
internal void OnGroupDisplayInLegendChanged(RuntimeMapGroup group, string displayInLegendState) { TrackChange(group.ObjectId, false, Change.ChangeType.displayInLegendChanged, displayInLegendState); }
internal void OnGroupLegendLabelChanged(RuntimeMapGroup group, string legendLabel) { TrackChange(group.ObjectId, false, Change.ChangeType.legendLabelChanged, legendLabel); }
/// <summary> /// Called when a group is added /// </summary> /// <param name="group"></param> internal void OnGroupAdded(RuntimeMapGroup group) { //??? TrackChange(group.ObjectId, false, Change.ChangeType.added, string.Empty); }
internal void DeserializeLayerData(MgBinaryDeserializer d) { int groupCount = d.ReadInt32(); this.Groups.Clear(); for (int i = 0; i < groupCount; i++) { //TODO: Review when we split to specific implementations RuntimeMapGroup g = new RuntimeMapGroup(); g.Deserialize(d); this.Groups.Add(g); } int mapLayerCount = d.ReadInt32(); this.Layers.Clear(); while (mapLayerCount-- > 0) { RuntimeMapLayer t = DeserializeLayer(d); this.Layers.Add(t); } }
public void RemoveGroup(RuntimeMapGroup group) { Check.NotNull(group, "group"); //NOXLATE this.Groups.Remove(group); }
private bool HasVisibleParent(RuntimeMapGroup grp) { var current = grp.Group; if (current != null) { var parent = _map.Groups[current]; if (parent != null) { return parent.Visible; } } return true; }
private TreeNode CreateGroupNode(RuntimeMapGroup group) { var node = new TreeNode(); node.Name = group.ObjectId; node.Text = group.LegendLabel; node.Checked = group.Visible; node.SelectedImageKey = node.ImageKey = IMG_GROUP; var meta = new GroupNodeMetadata(group); node.Tag = meta; _groups[group.ObjectId] = meta; //node.ContextMenuStrip = _legend.GroupContextMenu; return node; }