hello,I am using the following function to read all layers in a Dynamic map service and grab the MinScale and MaxScale properties. The function is very straightforward but doesn't give the desired result. All values for the MinScale and MaxScale are zero.This is a read only property which is fine as I only want to get the values, not set them.Does anybody know why this doesn't work. private void DynamicLayer_Initialized(object sender, EventArgs e)
{
ArcGISDynamicMapServiceLayer mapLayer = sender as ArcGISDynamicMapServiceLayer;
foreach (LayerInfo li in mapLayer.Layers)
{
MessageBox.Show((li.Name + " :" + li.MinScale + " " + li.MaxScale).ToString());
}
}
Regards,Cameron