ESRI.ArcGIS.ADF.IMS
MaxScale Property
See Also  Example
ESRI.ArcGIS.ADF.IMS.Display.AcetateElement Namespace > AcetateElement Class : MaxScale Property




Gets or sets a string representation for the maximum scale.

Syntax

Visual Basic (Declaration) 
Public Property MaxScale As String
Visual Basic (Usage)Copy Code
Dim instance As AcetateElement
Dim value As String
 
instance.MaxScale = value
 
value = instance.MaxScale
C# 
public string MaxScale {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 farthest (most zoomed-out) scale at which the element will draw. At farther (smaller) 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).

See Also

© 2010 All Rights Reserved.