/// <summary>
        /// Create ArcGisDynamicProvider, capabilities will be parsed automatically
        /// </summary>
        /// <param name="url">url to map service example: http://url/arcgis/rest/services/test/MapServer</param>        
        public ArcGisDynamicProvider(string url)
        {
            Url = url;

            Capabilities = new Capabilities
            {
                fullExtent = new Extent { xmin = 0, xmax = 0, ymin = 0, ymax = 0 },
                initialExtent = new Extent { xmin = 0, xmax = 0, ymin = 0, ymax = 0 }
            };

            var capabilitiesHelper = new CapabilitiesHelper();
            capabilitiesHelper.CapabilitiesReceived += CapabilitiesHelperCapabilitiesReceived;
            capabilitiesHelper.CapabilitiesFailed += CapabilitiesHelperCapabilitiesFailed;
            capabilitiesHelper.GetCapabilities(url);

            timeOut = 10000;
        }
Exemple #2
0
        /// <summary>
        /// Create ArcGisDynamicProvider, capabilities will be parsed automatically
        /// </summary>
        /// <param name="url">url to map service example: http://url/arcgis/rest/services/test/MapServer</param>
        public ArcGisDynamicProvider(string url)
        {
            Url = url;

            Capabilities = new Capabilities
            {
                fullExtent = new Extent {
                    xmin = 0, xmax = 0, ymin = 0, ymax = 0
                },
                initialExtent = new Extent {
                    xmin = 0, xmax = 0, ymin = 0, ymax = 0
                }
            };

            var capabilitiesHelper = new CapabilitiesHelper();

            capabilitiesHelper.CapabilitiesReceived += CapabilitiesHelperCapabilitiesReceived;
            capabilitiesHelper.CapabilitiesFailed   += CapabilitiesHelperCapabilitiesFailed;
            capabilitiesHelper.GetCapabilities(url);

            timeOut = 10000;
        }