Property ReferenceScale
ReferenceScale
Gets or sets the reference scale for the map.
Declaration
public double ReferenceScale { get; set; }
Property Value
Type | Description |
---|---|
Double | The reference scale. May be 0 when layer is not loaded, or if layer has no reference scale set. |
Remarks
The reference scale of the map is the scale at which a client should view the map for the feature symbols and text to appear at their authored size.
If the client changes the viewing scale, then feature symbols and text will grow or shrink to keep a consistent size on the map (not the screen). This only happens if the reference scale is greater than zero and for feature layers that have ScaleSymbols set to true, otherwise the symbols and text stay at their authored size.
The reference scale will be zero if the map is not loaded or if there is no reference scale and the symbols and text should appear at default size regardless of the viewing scale.
This property is intended to be used for new map objects, that will have layers attached that expect a reference scale.
Subsequent updates to this property will cause a redraw of all layers that use the reference scale, and possible redraw of other layers that depend on them (e.g. dynamic labels that need to re-position to avoid overlaps).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.5 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 100.15 |