SuperMap.Web.Mapping.TiledCachedISLayer.mapService_Initialized C# (CSharp) Method

mapService_Initialized() private method

private mapService_Initialized ( object sender, SmMapService e ) : void
sender object
e SmMapService
return void
        private void mapService_Initialized(object sender , SmMapService.MapServiceInitalizeArgs e)
        {
            if (e.MapService.MapServiceUrl == this.Url.Trim())
            {
                if (base.Error != null)
                {
                    base.Initialize();
                }
                else
                {
                    this.Bounds = this.mapService.MapServiceInfo.MapBounds;
                    Dpi = ScaleHelper.GetSmDpi(this.mapService.MapServiceInfo.ReferViewBounds , this.mapService.MapServiceInfo.ReferViewer , this.mapService.MapServiceInfo.ReferScale);
                    Dpi *= AdjustFactor;

                    double[] resolutions = new double[Scales.Length];
                    for (int i = 0 ; i < Scales.Length ; i++)
                    {
                        resolutions[i] = ScaleHelper.ScaleConversion(Scales[i] , this.Dpi);
                    }
                    this.Resolutions = resolutions;

                    base.Initialize();
                }
            }
        }