public Map(string name, string url, MapVersion version, MapAuthor author, MapArguments arg, ILayer[] layers) : this(name, url, version, author, arg) { _inputLayers = layers; _conflictDefForSymbol = new ConflictDefinition(); _conflictDefForLabel = new ConflictDefinition(new Size(60, 16), true); }
public Map() { _version = new MapVersion(); _author = new MapAuthor(); _arguments = new MapArguments(); _conflictDefForSymbol = new ConflictDefinition(); _conflictDefForLabel = new ConflictDefinition(new Size(60, 16), true); }
public Map(string name, string url) { _name = name; _url = url; _version = new MapVersion(); _author = new MapAuthor(); _arguments = new MapArguments(); _conflictDefForSymbol = new ConflictDefinition(); _conflictDefForLabel = new ConflictDefinition(new Size(60, 16), true); }
private static MapAuthor GetMapAuthor(XDocument doc) { var result = doc.Element("Map").Element("Author"); if (result == null) { return(null); } return(MapAuthor.FromXElement(result as XElement)); }
public Map(string name, string url, MapVersion version, MapAuthor author, MapArguments arg) { _name = name; _url = url; _version = version; _author = author; if (arg == null) { arg = new MapArguments(); } _arguments = arg; _conflictDefForSymbol = new ConflictDefinition(); _conflictDefForLabel = new ConflictDefinition(new Size(60, 16), true); }
private static IMap ParseMapFromXml(string filename) { PersistObject.BeginParse(); try { XDocument doc = XDocument.Load(filename); MapAuthor author = GetMapAuthor(doc); MapVersion version = GetMapVersion(doc); MapArguments arg = GetMapArguments(doc); ConflictDefinition csym = null, clabel = null; GetConflictDef(doc, out csym, out clabel); ILayer[] layers = GetFeatureLayer(doc); string mapname = doc.Element("Map").Attribute("name").Value; Map map = new Map(mapname, filename, version, author, arg, layers); map.SetConflictDefinition(csym, clabel); return(map); } finally { PersistObject.EndParse(); } }