Gets or sets the client-side script that executes when the map ZoomLevel changes

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

Syntax

Visual Basic
<BindableAttribute(True)> _
Public Property OnClientZoomChanged As String
	Get
	Set
C#
[BindableAttribute(true)]
public string OnClientZoomChanged { get; set; }
Visual C++
[BindableAttribute(true)]
public:
property String^ OnClientZoomChanged {
	String^ get ();
	void set (String^ value);
}
JavaScript
function get_onClientZoomChanged();
function set_onClientZoomChanged(value);

Remarks

When the zoom level changes a client-side javascript event will be fired with the the following 3 parameters
  • typeThe event type (="ZoomChanged"). This can be ignored
  • argsargs[0] contains the current zoom level
  • objThe object generating the event. This can be ignored.

Examples

 Copy imageCopy Code
        
             function MapZoomChanged(type, args, obj)
            {        
                var debugpanel = document.getElementById('debugpanel');
                debugpanel.innerHTML = '[' + obj.toString() + ',' + type + ']Current Zoom: ' + args[0] + '<br/>' + debugpanel.innerHTML;        
            }
             ..
             <div id = "debugpanel" ..
             
In this example OnClientZoomChanged would be set to "MapZoomChanged"

See Also