public SourceMapRecord(MashupParseContext context) { this.displayName = context.GetRequiredAttribute("DisplayName"); XMLTagReader xMLTagReader = context.NewTagReader("SourceMapRecord"); while (xMLTagReader.FindNextStartTag()) { if (xMLTagReader.TagIs(SourceMapInfo.GetXMLTag())) { this.sourceMapInfo = new SourceMapInfo(context, new DirtyEvent()); } else { if (xMLTagReader.TagIs(MapRectangle.GetXMLTag())) { this.userBoundingRect = new MapRectangle(context, MercatorCoordinateSystem.theInstance); } else { if (xMLTagReader.TagIs(LegendRecord.GetXMLTag())) { this.legendRecords.Add(new LegendRecord(context)); } else { if (xMLTagReader.TagIs(SourceMapLegendFrame.GetXMLTag())) { context.AssertUnique(this.sourceMapLegendFrame); this.sourceMapLegendFrame = new SourceMapLegendFrame(context); } } } } } }
public RenderClip(MashupParseContext context) { XMLTagReader xMLTagReader = context.NewTagReader(GetXMLTag()); while (xMLTagReader.FindNextStartTag()) { if (xMLTagReader.TagIs(MapRectangle.GetXMLTag())) { context.AssertUnique(rect); rect = new MapRectangle(context, MercatorCoordinateSystem.theInstance); } } }