예제 #1
0
        public PublishMapResponse PublishMap(PublishMapRequest request)
        {
            object[] results = this.Invoke("PublishMap", new object[] {
                request
            });

            return((PublishMapResponse)(results[0]));
        }
예제 #2
0
 /// <remarks/>
 public void PublishMapAsync(PublishMapRequest request, object userState)
 {
     if ((this.PublishMapOperationCompleted == null))
     {
         this.PublishMapOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPublishMapOperationCompleted);
     }
     this.InvokeAsync("PublishMap", new object[] {
         request
     }, this.PublishMapOperationCompleted, userState);
 }
예제 #3
0
 /// <remarks/>
 public void PublishMapAsync(PublishMapRequest request)
 {
     this.PublishMapAsync(request, null);
 }
예제 #4
0
        private PublishResult PublishWithoutPreUpload(MapInfo mapInfo)
        {
            var service = new DOMAService();
              service.Url = WebServiceUrl;

              var request = new PublishMapRequest
              {
            Username = Username,
            Password = Password,
            MapInfo = TranslateMapInfo(mapInfo),
              };

              try
              {
            request.MapInfo.BlankMapImageData = null; // this version of the webservice has not support for blank map images
            var response = service.PublishMap(request);
            return new PublishResult
            {
              Success = response.Success,
              ErrorMessage = response.ErrorMessage,
              URL = response.URL
            };
              }
              catch (Exception ex)
              {
            return new PublishResult
            {
              Success = false,
              ErrorMessage = ex.Message
            };
              }
        }
예제 #5
0
 /// <remarks/>
 public void PublishMapAsync(PublishMapRequest request, object userState) {
     if ((this.PublishMapOperationCompleted == null)) {
         this.PublishMapOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPublishMapOperationCompleted);
     }
     this.InvokeAsync("PublishMap", new object[] {
                 request}, this.PublishMapOperationCompleted, userState);
 }
예제 #6
0
 /// <remarks/>
 public void PublishMapAsync(PublishMapRequest request) {
     this.PublishMapAsync(request, null);
 }
예제 #7
0
 public PublishMapResponse PublishMap(PublishMapRequest request) {
     object[] results = this.Invoke("PublishMap", new object[] {
                 request});
     return ((PublishMapResponse)(results[0]));
 }