Exemplo n.º 1
0
        public PublishMapResponse PublishMap(PublishMapRequest request)
        {
            object[] results = this.Invoke("PublishMap", new object[] {
                request
            });

            return((PublishMapResponse)(results[0]));
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void PublishMapAsync(PublishMapRequest request)
 {
     this.PublishMapAsync(request, null);
 }
Exemplo n.º 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
            };
              }
        }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 /// <remarks/>
 public void PublishMapAsync(PublishMapRequest request) {
     this.PublishMapAsync(request, null);
 }
Exemplo n.º 7
0
 public PublishMapResponse PublishMap(PublishMapRequest request) {
     object[] results = this.Invoke("PublishMap", new object[] {
                 request});
     return ((PublishMapResponse)(results[0]));
 }