ESRI.ArcGIS.ADF.IMS
MinScale Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Display.AcetateElement Namespace > AcetateElement Class : MinScale Property




Gets or sets a string representation of the minimum scale.

Syntax

Visual Basic (Declaration) 
Public Property MinScale As String
Visual Basic (Usage)Copy Code
Dim instance As AcetateElement
Dim value As String
 
instance.MinScale = value
 
value = instance.MinScale
C# 
public string MinScale {get; set;}

Example

This sample creates an acetate element, adds it to an acetate layer, sets the mininum and maximum scales for the acetate layer, and adds the acetate layer to the map.
C#Copy Code
// Create the point and symbol for the acetate graphic
Point pt = new Point(75.0, 45.0);
SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(Drawing.Color.Blue, 15, MarkerSymbolType.Circle);
 
// Create the acetate graphic
GeometryElement acetatePt = new GeometryElement(AcetateUnits.Database, pt, symbol);
 
// Create the acetate layer and set minscale and maxscale
AcetateLayer acetateLayer = new AcetateLayer("mapGraphics");
acetateLayer.MinScale = "1:1000000";
acetateLayer.MaxScale = "1:20000000";
 
// Add acetate layer to the map
acetateLayer.AcetateElements.Add(acetatePt);
mapView.Layers.Add(acetateLayer);
Visual BasicCopy Code
' Create the point and symbol for the acetate graphic
Dim pt As New Point(75.0, 45.0)
Dim symbol As New SimpleMarkerSymbol(Drawing.Color.Blue, 15, MarkerSymbolType.Circle)
 
' Create the acetate graphic
Dim acetatePt As New GeometryElement(AcetateUnits.Database, pt, symbol)
 
' Create the acetate layer and set minscale and maxscale
Dim acetateLayer As New AcetateLayer("mapGraphics")
acetateLayer.MinScale = "1:1000000"
acetateLayer.MaxScale = "1:20000000"
 
' Add acetate layer to the map
acetateLayer.AcetateElements.Add(acetatePt)
mapView.Layers.Add(acetateLayer)

Remarks

This property is only valid with ImageServer services. ArcMap Server services will ignore the setting.

If set, this is the closest (most zoomed-in) scale at which the element will draw. At closer (larger) scales, the element will not be drawn.

No scale is used (i.e., element draws at all map scales) unless the property is explicitly set.

Scale can be expressed as a representative fraction (ratio), such as "1:24000". Also valid are decimal values for number of map units per pixel, such as 6.36 (meters/pixel) or 0.000265 (degrees/pixel). Note that scale expressions are dependent on the screen resolution in pixels/dots per inch (DPI).

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.