2010年8月08日_周日_Magnifier control

/************************************************************************************/

//2010年8月8周日

//Directions

//Creating ArcGIS Server solutions

//Developing Applications

//Developing web application using the web adf

//web controls

//Magnifer controls

/***********************************************************************************/

 

Magnifier control

(放大镜控件)

The Magnifier control provides a dynamic inset map: it allows the user to zoom in on a small area of the map. The user drags the magnifier window over the map, and the magnifier obtains a zoomed-in image centered at the middle of the magnifier window. The user can change the amount of magnification using the drop-down list in the magnifier window. The magnifier window extends the FloatingPanel control, and therefore automatically floats to allow the user to drag it over the map. The Magnifier is tied to the Map control via its Map property. Its source of data is specified with its MapResourceManager property, with the MagnifierMapResource property determining which resource from the MapResourceManager is used in the magnified map image. Only one map resource can be used in the Magnifier control.
Magnifier控件提供了一个动态的内置地图。她运行用户放大地图上某一个块小的区域。用户在map控件上方拖动Magnifier控件窗口,Magnifier 控件包含了一个方法后的图像,这个图像的以Magnifier控件的中间位置为中心。 用户可以使用Magnifier控件窗口中的一个下拉列表框,来改变放大的倍数。Magnifier控件扩展了FloatingPanel控件,因此自动的浮动功能允许用户在地图上方拖动Magnifier控件。Magnifier 控件通过map属性于map控件绑定。Magnifier控件的数据源明由她的MapResourceManager属性来指定。MagnifierMapResource属性决定来自MapResourceManager 的那个资源在magnifie控件的图像中使用。,
Assembly: ESRI.ArcGIS.ADF.Web.UI.WebControls.dll
Class: ESRI.ArcGIS.ADF.Web.UI.WebControls.Magnifier

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.
在VS.NET中,打开或者创建一个web 站点。 在设计模式下打开页面,选择工具箱,展开它的ArcGIS Web controls 页签, 向页面中拖放一个MapResourceManager控件,一个地图控件和一个Magnifier控件。


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:
向MapResourceManager 控件中添加一个或者多个资源。 更多的信息查看MapResourceManager控件中的 Add resources 部分。设置map控件的MapResourceManager 属性。关于设置map控件的

MapResourceManager属性,查看Map Control连接。在.NET下你的页面应该和下面的类似。

2010年8月08日_周日_Magnifier control  

Set Magnifier control properties

Select the Magnifier control.  In the Properties page:

选择Magnifier控件,打开属性窗口

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.

设置map属性为Map1,map1是我们在上一步添加的地图控件的ID值。

设置MapResourceManager 属性为我们在上一步创建并配置的的MapResourceManager控件的名称。

设置MagnifierMapResource 属性为MapResourceManager控件中的一个资源项,这个ResourceItem不能是一个Graphics图层。

我们还可以设置其他的属性来改变地图在运行的时候的行为。比如:MagnificationFactor 设置magnifier 窗口中默认的地图放大的倍数。在Floating Panel Appearance的属性组里面可以设置magnifier显示的样式,比如:背景颜色,是否在magnifier窗口中提供展开/缩放的功能以及关闭的按钮。

2010年8月08日_周日_Magnifier control

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.

Magnifier中显示范围的举行框的颜色

MagnificationFactor

int

The default magnification factor in the Magnifier window.

Magnifier 窗口默认的方法的倍数。

MagnifierMapResource

string

Map resource to be used for magnifying
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.
在magnification 中展示的地图资源


 

 

你可能感兴趣的:(IE)