Using the Magnifier control
-
Add the controls to the page
Open or create a Web site within Visual Studio.NET.
Open a Web form in design mode, select the Toolbox, and expand the
ArcGIS Web Controls tab. Drag and drop a MapResourceManager, a
Map control, and a Magnifier control onto the Web form.
Add one or more resources to the MapResourceManager. See the
Add Resources section in the MapResourceManager control topic for
information on how to do this. Also set the Map control's MapResourceManager
property to Map1. See Map Control for information
on setting this property. Your page should resemble the following in Visual
Studio.NET:
-
Set Magnifier control properties
Select the Magnifier control. In the Properties page:
-
Set the Map
property to Map1, the map control added earlier.
-
Set the MapResourceManager
property to the name of the MapResourceManager created and configured in
the previous steps.
-
Set the MagnifierMapResource
property to a ResourceItem in the MapResourceManager. The
ResourceItem cannot be a Graphics Layer.
-
Additional properties can be configured to change how the map behaves at
runtime. For example, MagnificationFactor sets the default zoom level
of the magnifier window. Properties in the Floating Panel Appearance group
determine how the magnifier appears, such as background colors and whether to
provide collapse/expand and close buttons on the magnifier window.
Members
Properties
The following table provides a list of properties of
interest. For complete reference information, see the Magnifier
control in the library reference section.
|
Property Name |
Type |
Description |
| AreaOfInterestLineColor |
bool |
The color of the extent rectangle on the Magnifier control.
|
| MagnificationFactor |
int |
The default magnification factor in the Magnifier window. |
| MagnifierMapResource |
string |
Map resource to be used for magnifying |
| Map |
string |
The Map control to use in obtaining the extent used by the
magnifier.
|
| MapResourceManager |
string |
The map resources used to display the image for the given
magnification. |