Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
MapPanControl Class
Members See Also Send Feedback

Web Control which provides pan and zoom control for a map

Namespace: EGIS.Web.Controls
Assembly: EGIS.Web.Controls (in EGIS.Web.Controls.dll)

# Syntax

Visual Basic (Declaration)
    Public Class MapPanControl _
    	Inherits CompositeControl

C#
    public class MapPanControl : CompositeControl

Visual C++
    public ref class MapPanControl : public CompositeControl

# Remarks

The MapPanControl control is a composite control that provides 4 pan buttons (left, right, up, down), a zoom-in and a zoom-out button.

The control can be customized by specifying a new Image Url for each of the pan or zoom buttons.

Each button is rendered as an "input" HTML element. To specify the CSS style of the buttons specify a class for the control and supply a style for the .class input, as shown below

| Copy Code
--- | ---
                <style type="text/css"> .mpc input {padding:2px;} </style>
                ..
                <cc1:MapPanControl class="mpc" ID="MapPanControl1" runat="server" />

# Inheritance Hierarchy

System..::.Object
System.Web.UI..::.Control
System.Web.UI.WebControls..::.WebControl
System.Web.UI.WebControls..::.CompositeControl
EGIS.Web.Controls..::.MapPanControl

# See Also

MapPanControl Members
EGIS.Web.Controls Namespace