private void AddSpatialElementGroupToView(SpatialElementInfoGroup group) { foreach (SpatialElementInfo element in group.Elements) { this.m_mapMapper.AddSpatialElementToView(element.CoreSpatialElement); } }
private void RenderSpatialElementGroup(SpatialElementInfoGroup group, bool hasScope) { foreach (SpatialElementInfo element in group.Elements) { this.RenderSpatialElement(element, hasScope); } }
private void RenderInnerMostMember() { SpatialElementInfoGroup spatialElementInfoGroup = (this.m_spatialDataMapper == null) ? this.CreateSpatialElementFromDataRegion() : this.GetSpatialElementsFromDataRegionKey(); if (spatialElementInfoGroup != null) { if (spatialElementInfoGroup.BoundToData) { throw new RenderingObjectModelException(RPRes.rsMapSpatialElementHasMoreThanOnMatchingGroupInstance(RPRes.rsObjectTypeMap, this.m_mapVectorLayer.MapDef.Name, this.m_mapVectorLayer.Name)); } this.RenderSpatialElementGroup(spatialElementInfoGroup, true); spatialElementInfoGroup.BoundToData = true; } }
private SpatialElementInfoGroup GetSpatialElementsFromDataRegionKey() { MapBindingFieldPairCollection mapBindingFieldPairs = this.m_mapVectorLayer.MapBindingFieldPairs; if (mapBindingFieldPairs != null) { SpatialElementKey spatialElementKey = VectorLayerMapper.CreateDataRegionSpatialElementKey(mapBindingFieldPairs); this.ValidateKey(spatialElementKey, mapBindingFieldPairs); SpatialElementInfoGroup result = default(SpatialElementInfoGroup); if (this.m_spatialElementsDictionary.TryGetValue(spatialElementKey, out result)) { return(result); } } return(null); }
protected void OnSpatialElementAdded(SpatialElementInfo spatialElementInfo) { this.m_vectorLayerMapper.OnSpatialElementAdded(spatialElementInfo.CoreSpatialElement); this.m_mapMapper.OnSpatialElementAdded(spatialElementInfo); SpatialElementKey spatialElementKey = this.CreateCoreSpatialElementKey(spatialElementInfo.CoreSpatialElement); if (this.m_mapVectorLayer.MapDataRegion != null && this.m_keyTypes == null && spatialElementKey.KeyValues != null) { this.RegisterKeyTypes(spatialElementKey); } SpatialElementInfoGroup spatialElementInfoGroup; if (!this.m_spatialElementsDictionary.ContainsKey(spatialElementKey)) { spatialElementInfoGroup = new SpatialElementInfoGroup(); this.m_spatialElementsDictionary.Add(spatialElementKey, spatialElementInfoGroup); } else { spatialElementInfoGroup = this.m_spatialElementsDictionary[spatialElementKey]; } spatialElementInfoGroup.Elements.Add(spatialElementInfo); }