Layer.MinScale Property
Gets or sets the lowest inverted nominal scale this Layer should be drawn at.
Syntax
public System.Double MinScale { get; set; }
Property Value
Default: Differs depending on type. See the table below.
The lowest inverted nominal scale when this layer should be drawn. E.g. for a minimum scale of 1:10000, specify 10000.
Default values
Remarks
The lowest inverted nominal scale this layer should be drawn at. If, for instance, MinScale is 10000 and MaxScale is 50000, then the layer will be drawn in the scale range 1:10 000 to 1:50 000. For the layer to be drawn, the Enabled property must also be True and the Condition must evaluate to True (or be null).
The property is not used in 3D views.
The actual test performed is minScale <= inverted nominal scale < maxScale. If the maxScale of one layer is identical to the minScale of another, exactly one of the layers will be active at any given scale. However, the view scale calculation may introduce some floating point inaccuracy, so even if you set the nominal scale to the exact same value as the minScale or maxScale of a layer, you can't be sure whether the layer will be visible or not. To get around this, add or subtract a small amount to either the scale or the minScale or maxScale properties.
Example
// Set MinScale of the Layer to 1 : 25 000
public static void SetMinScaleTo25000(Layer layer)
{
// This property is a member of a type that might be referred to by a View
// or a GlobeView, either directly or indirectly through other objects, which means
// that you must use the Guard class to take the global configuration lock when it
// is modified to synchronize access with any running Carmenta Engine threads.
using (Guard guard = new Guard())
{
// Set the MinScale of the Layer to 1 : 25 000
layer.MinScale = 25000.0;
}
}
Platforms
Windows, Linux, Android