コード例 #1
0
        /// <summary>
        /// Gets the URL.
        /// </summary>
        /// <param name="extent">The extent.</param>
        /// <param name="width">The width.</param>
        /// <param name="height">The height.</param>
        /// <param name="onComplete">The on complete.</param>
        public override void GetUrl(ESRI.ArcGIS.Client.Geometry.Envelope extent, int width, int height, DynamicMapServiceLayer.OnUrlComplete onComplete)
        {
            string sAXL = AxlHelper.GetRequestAxl(extent.XMin,
                                                  extent.YMin, extent.XMax, extent.YMax, _backgroundColor, _backgroundTranscolor, _imageFormat,
                                                  width, height);

            //ARCIMS CAN RETURN ERROR WHEN HEIGHT AND WIDTH DON'T MATCH THE LIMITED SETTINGS - HAVE SEEN WHERE THIS DOESN'T OCCUR WITH FLEX AND DOES IN SILVERLIGHT - OUR MAP SEEMS TO
            //BE LARGER - ACCORDING TO DOCUMENTATION, THIS CAN ONLY BE FIXED ON THE ARCIMS SERVER BY CHANGING THE SETTINGS

            _width  = width;
            _height = height;

            // Builds the url
            string sUrl = AxlHelper.BuildURL(ServiceHost, ServiceName, ProxyUrl);

            MakeRequest(sUrl, sAXL, onComplete);
        }
コード例 #2
0
        /// <summary>
        /// Initializes the resource.
        /// Override this method if your resource requires asyncronous requests to initialize,
        /// and call the base method when initialization is completed.
        /// </summary>
        public override void Initialize()
        {
            if (initializing || IsInitialized)
            {
                return;
            }
            //base.Initialize(); //We do this when service info is initialized
            initializing = true;


            // Get the ArcXml request
            string sAXL = AxlHelper.GetInitialAxl();

            // Builds the url
            string sUrl = AxlHelper.BuildURL(ServiceHost, ServiceName, ProxyUrl);

            MakeRequest(sUrl, sAXL, null);
        }