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();
}
}
}