//private static readonly MapEvents _events = new MapEvents(); //create or add Map //get Map by id //get Map by Guid public static Map GetMap(Guid mapId) { //CoriaMap coriaMap = new CoriaMap(); try { InternalApi.CoriaMap map = InternalApi.CoriaDataService.GetCoriaMap(mapId); if (map == null) { return(null); } return(new Map(map)); } catch (Exception ex) { return(new Map(new AdditionalInfo(new Error(ex.GetType().FullName, ex.Message)))); } }
internal Map(InternalApi.CoriaMap map) : base() { _map = map; }